Linux 禁用 root 账号登录
Linux 禁用 root 账号登录
1. 修改文件: /etc/ssh/sshd_config
#PermitRootLogin yes
修改为:
PermitRootLogin no
2. 重启ssh进程
/etc/init.d/sshd restart
Stopping sshd: [ OK ]
Starting sshd: [ OK ]
TIPS:
- 用root账号登陆时,如果只看到井号,输入bash,就可以正常显示,登陆账号,主机名,家目录。
# bash
[root@hostname ~]# ls -lart
- kill -9 0 登陆服务器后,用此命令, history命令,将不会记录你的操作。够酷吧。
Ubuntu安装完后设置root密码
破解Linux系统root密码
RedHat Linux 5忘记root密码后重置密码
本文永久更新链接地址:
评论暂时关闭