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 ?
configa socket and feeding its contents dynamically, or making.ssha virtual file system, or any such extremes. It certainly takes more than "a function")DynamicForwardoption insshd_config.