Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

ssh list port forwards

% sudo lsof -i -n | egrep '<ssh>'
ssh  19749  user  3u  IPv4 148088244   TCP x.x.x.x:39689->y.y.y.y:22 (ESTABLISHED)
ssh  19749  user  4u  IPv6 148088282   TCP [::1]:9090 (LISTEN)
ssh  19749  user  5u  IPv4 148088283   TCP 127.0.0.1:9090 (LISTEN)
Source by superuser.com #
 
PREVIOUS NEXT
Tagged: #ssh #list #port #forwards
ADD COMMENT
Topic
Name
2+9 =