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登陸維護服務器