禁止SSH账号登录设置方法
原创
52cxy
02-10 17:23
阅读数:6
# 禁用密码认证
PasswordAuthentication no ChallengeResponseAuthentication no UsePAM no
# 启用公钥认证
PubkeyAuthentication yes
//重启ssh服务
systemctl restart sshd
共0条评论
# 禁用密码认证
PasswordAuthentication no ChallengeResponseAuthentication no UsePAM no
# 启用公钥认证
PubkeyAuthentication yes
//重启ssh服务
systemctl restart sshd