SSH是否允许用户不使用密码和密钥登录?
我想在没有密码和密钥的情况下登录ssh。 我在sshd_配置上有一些特定的设置SSH是否允许用户不使用密码和密钥登录?,ssh,Ssh,我想在没有密码和密钥的情况下登录ssh。 我在sshd_配置上有一些特定的设置 PasswordAuthentication yes PermitEmptyPasswords yes AllowUsers admin AuthenticationMethods password KbdInteractiveAuthentication no 但还是有人问我密码。有没有办法做到这一点?您需要允许匿名或来宾登录,并将密码设置为空。 这是可以回答您问题的答案。
PasswordAuthentication yes
PermitEmptyPasswords yes
AllowUsers admin
AuthenticationMethods password
KbdInteractiveAuthentication no
但还是有人问我密码。有没有办法做到这一点?您需要允许匿名或来宾登录,并将密码设置为空。
这是可以回答您问题的答案。谢谢。它在我的网站上工作,但我尝试了不同的名称,管理员。我做了sed-I-re的/^admin:[^::+:/admin::/'/etc/passwd/etc/shadow。因此,我想关键是一个没有密码的帐户,而不是名字,匿名。