SecureCRT 连不上 Ubuntu,常见原因集中在 SSH 服务、网络、防火墙、配置或客户端设置 上。下面按排查顺序给你一套完整方案(适用于 Ubuntu 20.04/22.04/24.04)。
在 Ubuntu 上执行:
ps -ef | grep sshd
如果没有 sshd,安装并启动:
sudo apt update
sudo apt install openssh-server
sudo systemctl enable ssh
sudo systemctl start ssh
检查状态:
sudo systemctl status ssh
✅ 应该是 active (running)
ip a
一般是以 192.168.x.x 或 10.x.x.x 开头。
ping Ubuntu_IP
❌ ping 不通:
grep Port /etc/ssh/sshd_config
默认是:
Port 22
如果改过端口,SecureCRT 要对应修改。
编辑配置:
sudo nano /etc/ssh/sshd_config
确认或修改为:
PasswordAuthentication yes
PermitRootLogin yes
然后重启 SSH:
sudo systemctl restart ssh
查看状态:
sudo ufw status
如果开启,放行 SSH:
sudo ufw allow 22
sudo ufw reload
| SecureCRT 报错 | 可能原因 |
|---|---|
| Connection timed out | IP 不通 / 防火墙 |
| Connection refused | sshd 未启动 |
| No supported authentication methods | 禁用了密码登录 |
| Server unexpectedly closed network connection | SSH 配置错误 |
| 中文乱码 | 编码问题 |
✅ sshd 正在运行
✅ 22 端口开放
✅ 防火墙放行
✅ IP 能 ping 通
✅ SecureCRT 协议/端口正确
你可以直接把下面信息发我(可打码):
ssh user@ip 在本地是否能连我可以一步一步帮你精确到“哪一行配置错了”。