编辑配置文件
vi /etc/ssh/sshd_config
重启
service sshd restart
有防火墙的情况
编辑配置文件
vi /etc/sysconfig/iptables
这一条默认为22,ssh设置的端口
重启
service iptables restart
参考
https://www.cnblogs.com/liyuanhong/articles/7064582.html
https://blog.csdn.net/maquealone/article/details/72673456
|