SecureCRT 连不上 Debian,通常不是单一原因,而是 网络、SSH 服务、配置或密钥 某一环节出了问题。下面按最常见 → 较少见的顺序帮你系统排查。
在 Debian 上执行:
systemctl status ssh
如果没启动:
sudo systemctl enable ssh
sudo systemctl start ssh
Debian 12 默认可能 没有安装 openssh-server
安装:
sudo apt update
sudo apt install openssh-server
ss -lntp | grep ssh
如果看到:
LISTEN 0 128 0.0.0.0:22
说明 SSH 正常监听。
现象:一直转圈,最后提示 Connection timed out
sudo ufw status
如果启用:
sudo ufw allow 22
是否云服务器?
网络是否通
ping Debian_IP
现象:Connection refused
检查:
ss -lntp | grep ssh
如果看到:
127.0.0.1:22
说明 只允许本机连接
修改:
sudo nano /etc/ssh/sshd_config
确保:
ListenAddress 0.0.0.0
重启:
sudo systemctl restart ssh
现象:
No supported authentication methodsPermitRootLogin prohibit-password
✅ 解决:
PermitRootLogin yes
PasswordAuthentication no
✅ 解决:
yesed25519 + 旧 SecureCRTDebian 新版本 SSH 默认禁用老算法。
No compatible key exchange method
KexAlgorithms curve25519-sha256,diffie-hellman-group14-sha1
或升级 SecureCRT(≥ 8.5)
在 Debian 执行:
ip a
systemctl status ssh
ss -lntp | grep ssh
cat /etc/ssh/sshd_config | grep -E "Port|PermitRoot|PasswordAuth"
然后:
| 项目 | 正确 |
|---|---|
| 协议 | SSH2 |
| 端口 | 22 |
| 用户名 | 小写 |
| 认证 | Password / PublicKey |
| 字符编码 | UTF-8 |
你可以直接贴出:
cat /etc/os-release)ss -lntp | grep ssh我可以一步一步帮你 精确到行级配置 ✅