开发者社区> 问答> 正文

ssh无法连接服务器

已解决

突然间两台服务器失联了,系统管理终端可以通过用户和密码进行登录。服务起来之后,无论开启或关闭防火墙都不能获得服务。查看了安全组也没问题。
服务器上的 ssh 服务是正常的,且已通过问题排查,sshd 配置没有问题。
服务器上的 ~/.ssh/authorized_keys 上的公钥也是正确的。
ssh 始终无法连接服务器(使用公钥登录)。


Fc-mac:~ apple$ ssh -i ~/.ssh/platform-keypair.pem -vvv root@47.100.55.61
OpenSSH_7.6p1, LibreSSL 2.6.2
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 47.100.55.61 port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /Users/apple/.ssh/platform-keypair.pem type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/apple/.ssh/platform-keypair.pem-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4
debug1: match: OpenSSH_7.4 pat OpenSSH* compat 0x04000000
debug3: fd 5 is O_NONBLOCK
debug1: Authenticating to 47.100.55.61:22 as 'root'
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent

永远都卡在上面 "debug1: SSH2_MSG_KEXINIT sent"

这个应该怎么解决?

展开
收起
1787876177050585 2018-10-18 11:22:20 2825 0
2 条回答
写回答
取消 提交回答
  • 阿里云ping https://ping.gaomeluo.com/aliyun/
    采纳回答
    重启一下服务器,然后参考此教程https://bbs.aliyun.com/detail/345452.html

    望采纳,谢谢🙏
    2018-10-18 11:28:49
    赞同 2 展开评论 打赏
  • 重启下试试
    2018-10-18 11:32:13
    赞同 1 展开评论 打赏
问答排行榜
最热
最新

相关电子书

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