mac ssh解决超时退出

2019-03-22 21:04 阅读 2,123 views 次 mac ssh解决超时退出已关闭评论

用其一即可:

服务端配置
sudo vi /etc/ssh/sshd_config
ClientAliveInterval 60     #服务端主动向客户端请求响应的间隔
ClientAliveCountMax 10    #服务器发出请求后客户端没有响应的次数达到一定值就自动断开
service sshd restart

客户端配置
sudo vi /etc/ssh/ssh_config  #或~/.ssh/config

TCPKeepAlive=yes
ServerAliveInterval 60   #客户端主动向服务端请求响应的间隔

版权声明:本文著作权归原作者所有,欢迎分享本文,谢谢支持!
转载请注明:mac ssh解决超时退出 | 文档
分类:电脑技术 标签:

评论已关闭!