Hri*_*ish 7 ssh security authentication password
我已经完成了以下步骤:
现在所有用户帐户都可以使用身份验证密钥和密码登录,但现在我只想创建一个没有密钥身份验证的新用户。那我该怎么办呢?
另一方面,这不应妨碍使用密钥身份验证的其他用户。
Rob*_*sak 12
假设您的意思是要允许特定用户在其他人无法使用密码时使用密码,请将以下内容添加到/etc/ssh/sshd_config文件底部:
Match User rishee
PasswordAuthentication yes
KbdInteractiveAuthentication yes
Run Code Online (Sandbox Code Playgroud)
然后重启ssh:
sudo service ssh restart
Run Code Online (Sandbox Code Playgroud)