Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

If I have a tunnel opened with this command

 ssh -f root@localhost -g -L 60000:10.128.123.67:32354 -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.

Regards

share|improve this question

migrated from stackoverflow.com 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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.