Multiple LocalForward in ssh_config

How do I redirect multiple ports in a .ssh / config file? At the command prompt, I can do:

ssh 10.0.0.10 -L 8080:127.0.0.1:8080 -L 8443:127.0.0.1:443 

but when I do this:

  LocalForward 8080 127.0.0.1:8080 LocalForward 8443 127.0.0.1:443 

in .ssh / config, it does not work.

+10
source share
1 answer

ssh_config man ssh_config states:

You can specify multiple redirects, and additional redirects can be specified on the command line. Only superuser can forward privileged ports.

Perhaps the problem is permissions, are you using the same user for both teams?

+1
source

Source: https://habr.com/ru/post/970986/


All Articles