Linux 空密码登陆及ssh空密码登陆配置

xingyun86 2020-6-5 1025

1.加入当前用户为testuser

2.设置testuser密码为空

passwd -d testuser

3.配置ssh支持空密码登陆

sudo vi /etc/ssh/sshd_config

修改对应选项为以下内容:

# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication yes
PermitEmptyPasswords yes

4.设置完毕,重启ssh服务。

×
打赏作者
最新回复 (0)
只看楼主
全部楼主
返回