www.cnblogs.com/ruiyqinrui

开源、架构、Linux C/C++/python AI BI 运维开发自动化运维。 春风桃李花 秋雨梧桐叶。“力尽不知热 但惜夏日长”。夏不惜,秋不获。@ruiY--秦瑞

python爬虫,C编程,嵌入式开发.hadoop大数据,桉树,onenebula云计算架构.linux运维及驱动开发.

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

CentOS6无法本地登陆,ssh远程登陆没问题---使用CentOS自带的rsyslog分析调试

Apr 21 14:15:27 raccontroller init: tty (/dev/tty1) main process (2048) terminated with status 1
Apr 21 14:15:27 raccontroller init: tty (/dev/tty1) main process ended, respawning

/etc/rsyslog.conf

*.debug    /var/log/ruiy-debug.log

附--通常linux禁止本地及远程ssh登陆的配置方法步骤

1,禁止root本地登录
修改/etc/pam.d/login文件增加下面一行
auth required pam_succeed_if.so user != root quiet

2,禁止root远程ssh登录
修改/etc/ssh/sshd_config文件,将 #PermitRootLogin yes 修改为 PermitRootLogin no

3,禁止远程密码登陆

#session required /lib/security/pam_limits.so

PermitRootLogin yes
PasswordAuthentication yes

xShell 基于public key登陆维护服务器

posted on 2015-04-21 14:42  秦瑞It行程实录  阅读(2632)  评论(1编辑  收藏  举报
www.cnblogs.com/ruiyqinrui