AllowUsers
If specified, login is allowed only for user named that match one of the patterns.
Adicione raiz à lista:
AllowUsers root otheruser
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?