SSH Port forwarding in a ~/.ssh/config file? [closed] SSH Port forwarding in a ~/.ssh/config file? [closed] unix unix

SSH Port forwarding in a ~/.ssh/config file? [closed]


You can use the LocalForward directive in your host yam section of ~/.ssh/config:

LocalForward 5901 computer.myHost.edu:5901