1.确定linux防火墙已关闭
service iptables stop
2.确定端口22处于监听状态
netstat -an | grep 22
3.修改/etc/ssh/ 目录下的sshd服务配置文件 sshd_config
4.重启sshd服务
centos:service sshd restart
redhat:systemctl
1.确定linux防火墙已关闭
service iptables stop
2.确定端口22处于监听状态
netstat -an | grep 22
3.修改/etc/ssh/ 目录下的sshd服务配置文件 sshd_config
4.重启sshd服务
centos:service sshd restart
redhat:systemctl