Login a VPS con Public Key - Foro Support - Manuales tecnicos

Announcement

Collapse
No announcement yet.

Login a VPS con Public Key

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Login a VPS con Public Key

    Login a VPS con Public Key


    1) Iniciar sesion con el usuario “centos

    2) Cambias a root con: # sudo -s

    3) Editar el archivo “/root/.ssh/authorized_keys” y buscar la cadena : (“ssh-rsa”) borrar todo lo anterior a esa cadena.

    4 ) Abrir el archivo: “/etc/ssh/sshd_config” y descomentar la linea “PermitRootLogin yes

    5) Reiniciar el servicio SSH :
    En centos 7 : systemctl restart sshd
    En centos 6 : service sshd restart
    Last edited by soporte; 08-08-2016, 12:47 PM.
Working...
X