1,服務器鏈接不上
ssh: connect to host XXXXX port 22: Connection refused
原因,centos76.html">7 修改了鏈接的端口變成 2200了。
#Port 22Port 2200
修改回去,或使用2200鏈接。
修改:vi /etc/ssh/sshd_config
2,centos7默認安裝了防火墻不是iptables了
因為是本地測試,所以直接關閉防火墻,禁用開機啟動。
systemctl stop firewalldsystemctl disable firewalld
3,關閉selinux
vi /etc/selinux/config
修改以下內容
#SELINUX=enforcing #注釋掉#SELINUXTYPE=targeted #注釋掉SELINUX=disabled #增加
感謝閱讀,希望能幫助到大家,謝謝大家對本站的支持!
新聞熱點
疑難解答
圖片精選