您现在的位置是:首页 > 经验记录>服务器相关>centos7下配置好网络之后ssh登录失败怎么办 网站首页 服务器相关
centos7下配置好网络之后ssh登录失败怎么办
一:#vi /etc/ssh/sshd_config
1.1:修改 PermitRootLogin 为 yes
1.2:修改 PasswordAuthentication yes
保存后退出
二:重启SSH服务 systemctl restart sshd
三:关闭防火墙
systemctl stop firewalld
四:禁止开机启动
systemctl disable firewalld
修改配置文件 vim /etc/selinux/config
disabled参数 SELINUX=disabled
执行 setenforce 0 命令
ok
随机推荐
文章评论
未开放