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 yourpc.example.com -l username

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

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.

ssh_client_two_tunnels

 

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Network speed test host to host

On Ubuntu / Debian apt-get install iperf3 On Windows download it from https://iperf.fr/iperf-download.php#windows Make...

Clear HSTS Settings in CHrome

Open chrome://net-internals/#hsts enter the domain in the query field and click Query to confirm it has HSTS settings...