ssh -L forward multiple ports -


i'm running bunch of:

sudo ssh -l port:ip:port root@ip 

where ip target of secured machine, , port represents ports i'm forwarding.

this because use lot of applications cannot access without forwarding. after performing this, can access through localhost:port.

the main problem occured have 4 of these ports have forward.

my solution open 4 shells , search history backwards ports need forwarded etc, , run command - 1 in each shell (having fill in passwords etc).

if like:

sudo ssh -l port1+port2+port+3:ip:port+port2+port3 root@ip 

then help.

is there way make easier this?

use -l option again in same command. everytime different ports.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -