I understand that I can forward multiple port in ssh config file by:
Host name
HostName yam.myHost.edu
User myUserName
LocalForward 5901 127.0.0.1:5901
LocalForward 5902 127.0.0.1:5902
[...]
LocalForward 5910 127.0.0.1:5910
Is there any easier way to forward a range of ports without the need to add extra line for a port?
Something like LocalForward 5901-5910 127.0.0.1:5901-5910
?
Best Answer
I'm doing this usually without config, interactively in the command line like this
You could also generate the config file lines and copy/paste it to your config file: