如何阻止putty变成inactive

作者:我就是个世界 发表于:2010-12-07
今天刚买的LINUX VPS,在使用Putty远程连接的时候总是提示inactive,搜索到如下结果,完善解决!

Prevent Putty session from going inactive [How to]

Frequent users of putty should have encountered the Putty (inactive) problem. This happens because servers are usually configured to disconnect idle sessions after they are inactive for a particular time. This has many disadvantages. You can no longer monitor the jobs running in the background and the UP arrow for previous commands may not work. And you have to enter the username and password again after restarting the session.
This is how you keep it alive for longer periods[separator]
1. Before saving a session, click on Connection in the left pane.
2. Enter a number, in place of zero, in the text box.
    Ex: I use 30.
[img]http://img.uberullu.com/PreventPuttysessionfromgoinginactive_EC1/PuttyConnection.jpg[/img]

3. Now, go back to Session and Save your session with the IP address.
[img]http://img.uberullu.com/PreventPuttysessionfromgoinginactive_EC1/PuttySession.jpg[/img]
This way, the session sends a keep-alive request to the server every 30 seconds. Hence, it stays active.

分享:

扫一扫在手机阅读、分享本文

请发表您的评论