1.IP地址要设在同一网段下
2.查看22端口是否启动netstat -nlp
3.重启ssh,systemctl restart sshd.service
4.关闭防火墙,systemctl rstop firedwalld.service 或关闭selinux
5.虚拟机桥接
6.是否设置了22端口cat /etc/ssh/sshd_config
ssh登录失败
最新推荐文章于 2024-03-26 00:19:05 发布
1.IP地址要设在同一网段下
2.查看22端口是否启动netstat -nlp
3.重启ssh,systemctl restart sshd.service
4.关闭防火墙,systemctl rstop firedwalld.service 或关闭selinux
5.虚拟机桥接
6.是否设置了22端口cat /etc/ssh/sshd_config