解决 SSH Connection closed by foreign host 问题

用 Xshell 链接服务器老是报错 :git Connection closed by foreign host. Disconnected from remote host... 缘由多是 SSH 服务器没设置保活时间间隔 , 具体设置以下 :github # vim /etc/ssh/sshd_config 添加两行 , 或去掉注释 :web ClientAliveInterval 60 C
相关文章
相关标签/搜索