Port forwarding through ssh config
ssh -L 6006:127.0.0.1:6006 servername -p 1234maps port 6006 ofservernametolocalhost:6006, using ssh that’s running there on port1234- multiple ports are possible by passing multiple
-Larguments
If you do it often, you can add these settings to ~/.ssh/config:
Host pf
Hostname servername
LocalForward 6007 localhost:6007
LocalForward 6006 localhost:6006
Port 1234
…and then you connect to it as ssh pf.
Nel mezzo del deserto posso dire tutto quello che voglio.
comments powered by Disqus