课程: Linux Tips

免费学习该课程!

今天就开通帐号,24,700 门业界名师课程任您挑!

SSH: Reverse tunnel

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…

内容