SSH Stuff
So, I plan on having SSH related things here.
Tips & Tricks
Add a tunnel (port forwarding) to an existing ssh connection.
While in the active ssh connection, press Enter a few times. Once you have that, type ~ (tilde) and then C (capital c). At this point, you should see a new prompt. Something like this
ssh>
At this point, the cli is ready to receive your new ssh command. To forward a port from your localhost to the far end, type this
ssh> -L 8443:localhost:443
To break down what is going on above, the -L tells ssh that this is a local port to a remote port.
- 8443 is local port that you will connect to
- localhost is the far end IP that you want the packets sent to
- 443 is the far end port that you want the packets sent to
To get out of the special ssh> command, type exit and press enter. You will drop back to your normal shell.