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
- Installation autossh, needs to be installed in the root
- Open a port Tencent cloud server
- Refer to the above blog links
- To help understand ssh-copy-id command, where the command is given featured links: https://man.linuxde.net/ssh-copy-id