I use putty to login to the server via ssh. This creates a session locally; meaning if I disconnect from putty, the session is lost.
Is there any way that the session can keep running and be accessible from putty or any other client ? Or is there any other protocol or tool which can help out in this?
The tool screen is the tool that could help you. It executes a new shell. This new shell is not killed when the terminal is disconnected and it is possible to attach to this shell after reconnection. The usage for keeping session across terminal connections is easy. To start a new session type
$ screen
现在您可以终止腻子了。重新连接时,您可以连接到现有会话
$ screen -r
实际上,屏幕能够执行更多操作。参见https://www.gnu.org/software/screen/manual/screen.html
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句