首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ssh_exchange_identification:由远程主机关闭的连接?

ssh_exchange_identification:由远程主机关闭的连接?
EN

Server Fault用户
提问于 2010-12-15 16:53:08
回答 7查看 11K关注 0票数 3
代码语言:javascript
复制
debug1: Connection established.
debug1: identity file /home/DAMS/.ssh/id_rsa type 1
debug1: identity file /home/DAMS/.ssh/id_rsa-cert type -1
debug1: identity file /home/DAMS/.ssh/id_dsa type -1
debug1: identity file /home/DAMS/.ssh/id_dsa-cert type -1
ssh_exchange_identification: Connection closed by remote host

你好,这个不一样。什么都没有遗漏什么的。我正在使用cygwin,当我在服务器上执行git push production时,它就会停止。这通常是可以的,但我不知道它为什么要停止连接。

EN

回答 7

Server Fault用户

发布于 2012-01-19 18:23:12

我仍然不明白这个问题,但为我工作:

代码语言:javascript
复制
echo "sshd:ALL" >> /etc/hosts.allow 

根据您的系统,您可能需要sudo这一点。

票数 2
EN

Server Fault用户

发布于 2010-12-18 04:21:58

另一种可能是服务器正在使用tcp包装,而您的IP没有被白化。

票数 1
EN

Server Fault用户

发布于 2010-12-15 18:10:56

您可以在您的服务器上以调试模式启动sshd,以找出到底出了什么问题,但我有一种很好的感觉,您的问题是您的~/..ssh目录或您的~/..ssh/authorized_key文件在服务器上是可读的。

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/212949

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档