阅读时间:1 分钟
0 字
SSH 登录排查表
开始排查前,请确认目标服务器是 Linux 系统,并核对公网 IP、SSH 端口(默认 22)以及账号密码。建议使用 root 或具有 sudo 权限的账号。
使用 Web 在线版时,还需要确认服务器有公网 IP、防火墙没有封禁海外流量(在线版节点位于新加坡),并已在云平台安全组放行 SSH 端口。
| 报错信息 / 现象 | 可能原因 | 快速解决方案 |
|---|---|---|
| Process exited with status 1 | 系统架构或位数不支持 | 极目桌面 不支持 32 位系统;确认下载包与 CPU 架构一致。执行 uname -m 和 getconf LONG_BIT 检查。 |
| ssh: subsystem request failed | SFTP 服务未启用 | 检查 /etc/ssh/sshd_config 中存在未注释的 Subsystem sftp /usr/lib/openssh/sftp-server,然后执行 sudo systemctl restart ssh。 |
| Connection Refused | SSH 服务未启动或端口错误 | 执行 sudo systemctl status ssh,并确认填写的是正确端口。 |
| Connection Timeout | 防火墙、安全组或网络链路问题 | 在云安全组和本机防火墙放行对应端口,例如 sudo ufw allow 22/tcp。 |
| Username or password is incorrect | 凭据错误或 root 登录被禁用 | 核对账号密码,并检查 sshd_config 中的 PermitRootLogin 配置。 |
