ssh
liyu1059915776
这个作者很懒,什么都没留下…
展开
-
centos7更改句柄(limit.config),导致用户无法登录。
原因:项目需要,修改了linux的最大打开文件描述符,修改后对应用户就无法登录了。。。/etc/security/limits.conf,配置内容如下:root soft nofile 2048000root hard nofile 2048000root soft nproc 2048000root hard nproc 2048000liyu soft nofile 102400liyu hard nofile 102400liyu soft nproc 102400liyu har原创 2020-09-26 21:22:27 · 3808 阅读 · 0 评论 -
centos7单用户系统修改配置文件,导致ssh无法登录
导致ssh无法登录的原因:修改配置文件后selinux不生效(selinux的相关内容自行学习,网上资料很多)。解决方案当然是让其生效:方法比较简单,这里直接上命令登录root用户执行命令:touch /.autorelabel重启系统:reboot如果无法登录root:需要进去单用户模式执行命令:touch /.autorelabel重启系统:reboot如何进入单用户模式的文章链接:入口...原创 2020-09-26 21:03:21 · 1587 阅读 · 0 评论