SSH:仅公钥认证!

n00*_*ki3 1 ssh public-key

有人知道吗。如何将 sshd 配置为仅使用公钥身份验证连接?

currentStatus:如果您没有钥匙。然后你就可以用你的密码登录了。

小智 12

确保以下配置项在您的sshd_config:

PasswordAuthentication no
UsePAM no
ChallengeResponseAuthentication no
Run Code Online (Sandbox Code Playgroud)