让Ubuntu的ssh保持长时间连接

在/etc/ssh/ssh_config文件里加两个参数就行了

TCPKeepAlive yes
ServerAliveInterval 300​

猜你喜欢

转载自my.oschina.net/igiantpanda/blog/1799850