1;打开配置文件 vi /etc/ssh/sshd_config
2;调整第79行和115内容 设置为no
3;打开hosts文件 建立本地IP地址和主机名信息
4;systemctl restart sshd
完成