PuTTY connection to Linux Server frequent disconnection solution, puttylinux
After remotely connecting to the server, PuTTY often prompts "Software caused connection abort" when disconnected, and often loses the connection in a short time.
The solution is as follows:
Step 1: Set the server
1. Modify the/etc/ssh/sshd. config file on the server and set the value of LoginGraceTime to 0 and TCPKeepAlive to yes.
2. service sshd restart restarts the sshd service.
Step 2: Set "Sending of null packets to keep session active" in the Connection project on the left of PuTTY to send a packet every several seconds, so that the session will not expire. For example, the 10 seconds I set
Step 3:
If the server is on the LAN, check whether there is any IP conflict on the server. I am using virtual machine bridging, So I encountered this problem.
Use the arping command: arping-c 3-f-D *. * (replace it with the IP address you want to use)
For more information, see my other blog: http://blog.csdn.net/wyqwclsn/article/details/41013647