Debian 上 SecureCRT 的调试步骤
一 快速定位思路
二 客户端侧 SecureCRT 调试要点
三 服务器端 Debian 侧排查
四 常见报错对照与处理
| 症状 | 可能原因 | 快速处理 |
|---|---|---|
| 连接超时 | 网络不通、NAT/防火墙空闲超时 | ping 测试连通;在客户端启用 NO-OP Keepalive;放行服务器 22 端口 |
| Connection refused | SSH 服务未运行/端口不对 | systemctl 启动 ssh;确认端口为 22 或相应自定义端口 |
| Key exchange failed | 客户端/服务器算法不匹配 | 升级 SecureCRT;在 sshd_config 调整 KexAlgorithms 后重启 sshd |
| Permission denied (publickey,password) | 认证方式/密钥/密码错误 | 检查 PubkeyAuthentication/PasswordAuthentication;核对私钥与 authorized_keys 权限 |
| 中文乱码 | 终端编码不一致 | SecureCRT 设为 UTF-8 |
| 频繁断连 | 空闲超时/策略限制 | 调整 Keepalive;检查防火墙/安全组与服务器日志 |
五 验证与回归测试