Ativar login root via ssh não está funcionando?

0

Eu quero ativar o login root via ssh. Então eu adiciono a linha 'PermitRootLogin yes' ao arquivo de configuração ssh '/ etc / ssh / sshd_config':

Port 22
Protocolo 2
HostKey / etc / ssh / ssh_host_rsa_key
HostKey / etc / ssh / ssh_host_dsa_key
HostKey / etc / ssh / ssh_host_ecdsa_key
HostKey / etc / ssh / ssh_host_ed25519_key
UsePrivilegeSeparation sim
KeyRegenerationInterval 3600
ServerKeyBits 1024
SyslogFacility AUTH
LogLevel INFO
LoginGraceTime 120
PermitRootLogin sim
StrictModes sim
RSAAuthentication yes
PubkeyAuthentication sim
IgnoreRhosts sim
RhostsRSAAuthentication no
HostAuthentication no
RhostsRSAAuthentication
PermitEmptyPasswords no
ChallengeResponseAuthentication no
X11Forwarding sim
X11DisplayOffset 10
PrintMotd no
PrintLastLog sim
TCPKeepAlive sim
AcceptEnv LANG LC_ *
Subsistema sftp / usr / lib / openssh / sftp-server
UsePAM yes

Mas o acesso é negado.
obrigado antecipadamente

    
por user Ridae 23.03.2017 / 20:15

1 resposta

1

Pode ser um par de coisas:

1) Se você está tentando fazer o login usando uma senha, você precisará adicionar:

PasswordAuthentication yes

no arquivo de configuração. (Deve usar apenas este método para configurar as chaves ssh inicialmente)

2) Você não configurou corretamente suas chaves SSH.

3) A porta ssh está sendo bloqueada pelo firewall.

    
por 23.03.2017 / 20:33