SSH Always forwarding a port

If you have ports that you always want to forward, you can use the

LocalForward directive in the SSH config file.



For example, if you wanted to forward ports 8888 and 18888, you could

update the file as follows:



Host remote-linux-machine

User myuser

HostName remote-linux-machine.mydomain

LocalForward 127.0.0.1:8888 127.0.0.1:8888

LocalForward 127.0.0.1:18888 127.0.0.1:18888

Comments

Popular posts from this blog

Check MySQL query history from command line

Installing chocolatey on Windows