Não é possível usar o root ssh apesar da opção “PermitRootLogin yes” no sshd_config

1

Eu não consigo me conectar ao ssh apesar do fato de que a opção PermitRootLogin está definida como "yes" no meu sshd_config.

ssh localhost
root@localhost's password: 
Permission denied, please try again.

Aqui está meu sshd_config completo:

PasswordAuthentication yes
ChallengeResponseAuthentication no
UsePAM yes
X11Forwarding yes
PrintMotd no
AcceptEnv LANG LC_*
Subsystem   sftp    /usr/lib/openssh/sftp-server
PermitRootLogin yes
AllowUsers otheruser

O que impede a conexão ssh como root e como corrigi-la?

    
por user123456 09.06.2018 / 10:54

1 resposta

2

AllowUsers

If specified, login is allowed only for user named that match one of the patterns.

Adicione raiz à lista:

AllowUsers root otheruser
    
por 09.06.2018 / 11:40