SecureCRT 连接 Linux 时报错很常见,下面按最常见报错场景给你一份排查与解决速查表。你可以对照自己的报错信息,也可以把具体报错原文贴出来,我可以更精准帮你定位。
现象
Connection timed out
原因 & 解决
ping IP
systemctl status firewalld
firewall-cmd --list-ports
放行 22 端口:firewall-cmd --add-port=22/tcp --permanent
firewall-cmd --reload
systemctl status sshd
systemctl start sshd
现象
Connection refused
原因
解决
systemctl start sshd
ss -lntp | grep ssh
现象
No supported authentication methods available
原因
解决
vi /etc/ssh/sshd_config
PasswordAuthentication yes
systemctl restart sshd
现象
Key exchange failed
No compatible key exchange method
原因
解决(推荐) 在 Linux:
vi /etc/ssh/sshd_config
添加:
KexAlgorithms curve25519-sha256,diffie-hellman-group14-sha256
重启:
systemctl restart sshd
现象
解决 SecureCRT:
Session Options
→ Terminal
→ Appearance
→ Character encoding → UTF-8
原因
解决 Linux:
vi /etc/ssh/sshd_config
ClientAliveInterval 60
ClientAliveCountMax 3
重启 sshd。
SecureCRT:
Session Options → Connection → Send protocol NO-OP
原因
解决
ssh-keygen -R IP
或 SecureCRT 删除旧 host key。
✅ ping 通
✅ sshd 启动
✅ 22 端口开放
✅ 防火墙放行
✅ SecureCRT 字符编码 UTF-8
✅ 用户名 / 密码 / 私钥正确
你可以直接把 SecureCRT 的完整报错截图或文字 发给我,例如:
我可以一步一步帮你定位 ✅