Use autossh external network access from within the host network

Because the school network server can be connected via the campus network, Rom at home, and so want you can connect the campus network server at home.

I made reference to several personal blog:

Using a reverse ssh visited network from the host extranet

https://blog.mythsman.com/post/5d301903976abc05b3454691/

ssh reverse connection and autossh

https://www.cnblogs.com/irockcode/p/6629526.html


 

I was using Tencent cloud server to connect the school network ( Tencent cloud server requires openness to foreign ports ) mainly refer to the use of reverse ssh access from outside the network within the network host ,

But when the school network server to perform autossh, Tencent cloud server did not listen, so I looked blog ssh reverse connection and autossh , generate a public key and a private key, follow the steps in this blog by copying the public key Tencent cloud server

  1. Installation autossh, needs to be installed in the root
  2. Open a port Tencent cloud server
  3. Refer to the above blog links
  4. To help understand ssh-copy-id command, where the command is given featured links: https://man.linuxde.net/ssh-copy-id

Guess you like

Origin www.cnblogs.com/chuanyang/p/12031255.html