开发者社区> 问答> 正文

ssh连接不上服务器

阿里云上其他服务器上通过ssh root@120.24.216.196均正常,
在公司机器上通过ssh root@120.24.216.196,出现以下错误:
OpenSSH_7.3p1, LibreSSL 2.4.1
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug1: Connecting to 120.24.216.196 [120.24.216.196] port 22.
debug1: Connection established.
debug1: identity file /Users/mechanic/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/mechanic/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/mechanic/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/mechanic/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/mechanic/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/mechanic/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/mechanic/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/mechanic/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.3
ssh_exchange_identification: read: Connection reset by peer

用阿里云其他服务器 telnet 120.24.216.196 22 正常
用公司服务器 telnet 120.24.216.196 22 不通

展开
收起
飞天猫12 2017-04-18 12:03:08 4259 0
1 条回答
写回答
取消 提交回答
  • 长天一色

    设法清除公司服务器上关于该被连接服务器的密钥信息,如果你没有办法,我推荐一个简单粗暴的办法,就是删除公司服务器上的主文件夹下的名为 .ssh 的隐藏文件夹,注意文件夹名是以点开头。当然你删除之前最好还是问问公司的其他人有没有人在这文件夹.ssh里放什么重要的东西。

    2019-07-17 21:03:59
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
如何运维千台以上游戏云服务器 立即下载
网站/服务器取证 实践与挑战 立即下载
ECS计算与存储分离架构实践 立即下载