Listing Active SSH Client Tunnels from Within the SSH Client

Written by James McDonald

May 11, 2015

If you do

ssh -L 5432:localhost:5432 -l username

And you want to see the active tunnels following this comment from

From within an ssh session:

  1. press enter
  2. type ~ and then #

shows you a list of all open connections over your tunnels for that session.

Note: This will only show the client connection and active tunnels meaning that you have something connected and passing traffic through the tunnel.




Submit a Comment

Your email address will not be published.

You May Also Like…

List your VSCode Extensions

Ever wondered what extensions you have installed and want to keep a list? This actually is a good way to audit your...