2019年12月14日 下午10:25
- 新建用户
- SSH设置(重点)
禁止root用户登录,以及禁止用密码方式登录
注:在配置文件的末尾,指定允许登陆的用户
sudo cp /etc/ssh/sshd_config ~sudo nano /etc/ssh/sshd_config1
2
3
4
5
6
7
8
9
10
11
12
13Protocol 2
PermitRootLogin no
PermitEmptyPasswords no
PasswordAuthentication no
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
UseDNS no
AllowUsers bill