Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/unix/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
SSH是否允许用户不使用密码和密钥登录?_Ssh - Fatal编程技术网

SSH是否允许用户不使用密码和密钥登录?

SSH是否允许用户不使用密码和密钥登录?,ssh,Ssh,我想在没有密码和密钥的情况下登录ssh。 我在sshd_配置上有一些特定的设置 PasswordAuthentication yes PermitEmptyPasswords yes AllowUsers admin AuthenticationMethods password KbdInteractiveAuthentication no 但还是有人问我密码。有没有办法做到这一点?您需要允许匿名或来宾登录,并将密码设置为空。 这是可以回答您问题的答案。

我想在没有密码和密钥的情况下登录ssh。 我在sshd_配置上有一些特定的设置

    PasswordAuthentication yes
    PermitEmptyPasswords yes
    AllowUsers admin
    AuthenticationMethods password
    KbdInteractiveAuthentication no

但还是有人问我密码。有没有办法做到这一点?

您需要允许匿名或来宾登录,并将密码设置为空。
这是可以回答您问题的答案。

谢谢。它在我的网站上工作,但我尝试了不同的名称,管理员。我做了sed-I-re的/^admin:[^::+:/admin::/'/etc/passwd/etc/shadow。因此,我想关键是一个没有密码的帐户,而不是名字,匿名。