Recently, mobaxterm is used to connect to the remote Ubuntu server through SSH. After not operating for a period of time, the connection will be broken and a prompt “network error: software caused connection abort” will be displayed.
You can modify the SSH configuration item in mobaxterm and check SSH keepalive to solve the problem of disconnection.
In addition, you need to modify the configuration file on the Ubuntu server side.
sudo vi /etc/ssh/sshd_config
1. Find tcpkeepalive yes and # remove the previous one;
2. Find the clientaliveinterval parameter, remove the previous #, and change the following 0 to 60, indicating that the request is sent every minute to maintain the connection.
Digression. To maintain the connection, you can use commands such as top to refresh the command line in real time.
Read More:
- Putty prompt network error: software caused connection abort solution
- Putty network error: software caused connection abort
- putty Network error:Software caused Connection abort solution – measured valid
- Putty prompts network error: software caused connection abort
- Solutions to network connection problems in Ubuntu 16.04.3
- About Using SSH connection for Linux server
- Ubuntu18 “Activation of network connection failed” cannot access the Internet 【Solution】
- SSH connection to MAC server shows No route to host solution
- Vs_ Code remote SFTP connects to the server to modify the nginx configuration information and reports all configured authentication methods failed
- Remote sshd prompt: server unexpectedly closed network connection
- Ubuntu network configuration+Fixing “Failed to bring up eth0” in Ubuntu
- Ubuntu 20.04 connection failed activation of network connection failed
- SQL server remote computer refused network connection, error: 1225, specific solution steps.
- Ubuntu starts or restarts SSH service
- Windows subsystem Ubuntu 18.04 solves SSH problem
- Solutions to the problem of using sudo caused by Ubuntu’s wrong modification of sudoers
- Vscode remote connection server reports an error: could not establish connection to “XXXXXX” [resolved]
- SQL 2005 remote connection error (provider: SQL network interface, error: 28 – the server does not support the requested protocol
- How to uninstall the software for apple / Mac? What if the software can’t be unloaded?
- How to generate and view SSH keys in Ubuntu 16.04