SSH Through a Router Without Port Forwarding
If you want to establish an SSH connection to your “linux server” from the outside without configuring port forwarding on your router, you can use SSH remote port forwarding. This technique allows you to connect to an external server (let’s call it “my_other_server”) and have it forward traffic back to your “linux server.” Here’s how you can do it:
-
SSH from linux_server to my_other_server:
Open a terminal on your “linux server” and use the following command to initiate an SSH connection to “my_other_server,” specifying remote port forwarding: