0

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

  • 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
2
netstat -anp | grep 60000.*ssh

should do the job.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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