码迷,mamicode.com
首页 > 系统相关 > 详细

Linux ssh 远程登录失败

时间:2020-01-13 14:39:32      阅读:101      评论:0      收藏:0      [点我收藏+]

标签:led   linu   恢复   无法   cin   新建   root   sysconf   bsp   

技术图片

 

 经检查本地防火墙关闭,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

重启服务reboot

Linux ssh 远程登录失败

标签:led   linu   恢复   无法   cin   新建   root   sysconf   bsp   

原文地址:https://www.cnblogs.com/metooli/p/12187058.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!