Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I have a tunnel opened with this command

 ssh -f root@localhost -g -L 60000: -N

Which call of netstat do I have to use to see whether the tunnel is open or not?

I am working with Linux Red Hat.


share|improve this question

migrated from Mar 13 '13 at 17:37

This question came from our site for professional and enthusiast programmers.

Do you want to know if the tunnel is available, or whether there are any connections using it? – Barmar Mar 13 '13 at 16:10
up vote 2 down vote accepted
netstat -anp | grep 60000.*ssh

should do the job.

share|improve this answer
Hi TInk! Manny thanks it works ! – Abruzzo Forte e Gentile Mar 14 '13 at 8:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .