From the course: Linux Tips

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

SSH: Reverse tunnel

SSH: Reverse tunnel - Linux Tutorial

From the course: Linux Tips

SSH: Reverse tunnel

- When we connect to a remote system using SSH, we can tell SSH to create a reverse tunnel, which connect back to our local system from the remote system at the same time. The reverse tunnel provides a support on the remote system, which we can use to connect back to our local system within an existing SSH connection. This reverse tunnel usually points back to port 22 on the local system, but it can also be used to allow the remote system to access any particular port on a local system, like a locally running server of some kind when it's connected back to port 22, it's very useful for moving files between the remote system and the local system using SCP or similar tools. Here on my client's system, I'll connect to my remote system using SSH, but I'll use the dash capital R option to tell SSH to create a reverse tunnel in addition to connecting me as normal to the remote system. This section here tells the SSH server on the…

Contents