ssh 不到阿里云服务器会是什么问题啊?

2021-11-24 18:06:46 +08:00
 twosix
打开日志显示一直卡在这个地方:
debug1: Connection established.
debug1: identity file /root/.ssh/id_rsa type 0
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
debug1: identity file /root/.ssh/id_ed25519 type -1
debug1: identity file /root/.ssh/id_ed25519-cert type -1
debug1: identity file /root/.ssh/id_xmss type -1
debug1: identity file /root/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.8
2643 次点击
所在节点    Linux
7 条回复
wangyu17455
2021-11-24 19:35:54 +08:00
是不是安全组开没开 ssh 端口,是不是允许密码 /公钥登录,是不是允许 root 登录
三板斧解决百分之 90 问题
xwayway
2021-11-24 19:59:04 +08:00
@wangyu17455 还遇到过一个问题,选择的网络按量计费,但是账户没钱了,谁能想到呢
rooftop64
2021-11-24 20:03:54 +08:00
先从阿里云控制台 /VNC 进去看下 ssh 服务,ssh 本机试下

这样没问题的话,考虑下是不是安全组或者 iptables 没放开端口
ScaredHeart
2021-11-24 20:19:36 +08:00
如果是公钥登陆,要求客户端公钥所在目录权限是足够安全的。之前遇到过 windows ssh 上 debian 一直失败,检查下来发现是 windows 下面 ~/.ssh 的目录权限是「所有人」,将其重新设置成「管理员」就解决了。 也是开 ssh debug 模式 对比日志发现的。
SingeeKing
2021-11-25 03:45:03 +08:00
看样子是请求被 drop 掉了,检查下安全组和服务器防火墙吧
FAQ999
2021-11-25 08:32:34 +08:00
先去控制台,投个命令看是否正常投放,如果不能投放就是服务器被攻击了或者其他。
正常投放后再按照常规的安全组 /网络 /端口等检测。
istevenshen
2021-11-25 08:40:20 +08:00
先看看 ip 能不能 ping 通,可以 ping 通再检查一下端口或者防火墙之类有没有问题

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/817715

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX