Keeping Ubuntu ssh connected for a long time is a stand-out Linux operating system. In just a few years, it has gradually become a shining pearl in the open source field. more and more users are using ubuntu, but some users say that the ssh connection under Ubuntu will always be broken by themselves...
Keeping Ubuntu ssh connected for a long time is a stand-out Linux operating system. In just a few years, it has gradually become a shining pearl in the open source field.
More and more users are using ubuntu, but some users say that ssh connections under Ubuntu will always be disconnected,
If you ignore it for a while, you will lose the response. www.2cto.com. how can I keep the ssh connection to the server or sshtunnel? In fact, it is also very convenient, as long as you add two parameters to the/etc/ssh/ssh_config file, the line is 1 TCPKeepAliveyes 2ServerAliveInterval300
The previous parameter indicates to keep the connection. The next parameter table indicates that a packet is sent to the server every five minutes, indicating "I am still alive". if you do not have the root permission, modify or create ~ /. Ssh/ssh_config is also possible.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.