DEV Community

Andres C
Andres C

Posted on

1 1

HABILITAR EL INICIO DE SESIÓN DE ROOT A TRAVÉS DE SSH

Inicie sesión en su servidor como root.
Como usuario root, edite el archivo sshd_config que se encuentra en /etc/ssh/sshd_config

vim /etc/ssh/sshd_config

Agregue la siguiente línea al archivo, puede agregarla en cualquier lugar, pero es una buena práctica encontrar el bloque sobre autenticación y agregarlo allí.

PermitRootLogin yes

Guardar y salir del archivo.
Reinicie el servidor SSH:

systemctl restart sshd

¡Y eso es! Con la nueva línea agregada y el servidor SSH reiniciado, ahora puede conectarse a través del usuario root.

En este caso, podrá iniciar sesión como usuario root utilizando la contraseña o una clave ssh .

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay