按以下步骤进行排查:
1. 用“service iptables stop”关闭防火墙。
2. 用“service sshd status”查看ssh服务是否已启动。
3. /etc/ssh/sshd_config里看看有没有明确禁止一个账户,或明确允许你要远程的账户。
DenyUsers root
AllowUsers puser
4. netstat -tupln|grep sshd 看看你的sshd端口是多少。
按以下步骤进行排查:
1. 用“service iptables stop”关闭防火墙。
2. 用“service sshd status”查看ssh服务是否已启动。
3. /etc/ssh/sshd_config里看看有没有明确禁止一个账户,或明确允许你要远程的账户。
DenyUsers root
AllowUsers puser
4. netstat -tupln|grep sshd 看看你的sshd端口是多少。