Linux ssh 远程登录失败

 经检查本地防火墙关闭,ssh配置文件已允许root登录,新建的用户也无法远程登录,本地ssh也不可以,

关闭selinux后恢复。

临时关闭:

[root@localhost ~]# getenforce
Enforcing

[root@localhost ~]# setenforce 0
[root@localhost ~]# getenforce
Permissive

永久关闭:

[root@localhost ~]# vim /etc/sysconfig/selinux

SELINUX=enforcing 改为 SELINUX=disabled

扫描二维码关注公众号,回复: 8569508 查看本文章

重启服务reboot

猜你喜欢

转载自www.cnblogs.com/metooli/p/12187058.html