Povolení autentizace heslem pro přihlášení do Dropletu bez klíče SSH

Pokud jste ztratili klíč Digital Ocean SSH a nemůžete se přihlásit, nemusíte se obávat. Stačí postupovat krok za krokem. Pokud potřebujete jakoukoli pomoc, neváhejte se vyjádřit níže.

  1. Přihlášení k Digital Ocean account
    login to DigitalOcean
  2. Vyberte požadovaný Droplet které chcete obnovit
    droplet
  3. Go to Access menu and click Reset Root Password button
    access reset root password
  4. Zkopírujte heslo, které jste obdrželi na svůj e-mail
    access reset root password 1
  5. Launch Console
    launch console
  6. Type username root
  7. Using right click or CTRL+V paste the password and press Enter
  8. Digital Ocean will ask to change password, first Enter Current password
  9. Then, provide a New password
  10. Re-enter the New password
  11. Now, you are logged in via Console.
  12. But, we need to enable password login for the droplet, please enter below commandnano /etc/ssh/sshd_config
  13. Find the line PasswordAuthentication no
  14. Replace to PasswordAuthentication yes
    set yes
  15. Save the file using command CTRL+O and press Enter key
  16. Restartování Dropletu using reboot commandreboot
  17. Nyní se můžete přihlásit pomocí hesla v Putty SSH client without providing SSH key.

Doufám, že to pomůže.

Odkaz: https://www.digitalocean.com/docs/droplets/resources/lost-ssh-key/

Napsat komentář

2 komentáře u „Povolení autentizace heslem pro přihlášení do Dropletu bez klíče SSH“

  1. Hey Gulshan! This is Harsh, I’m the Product Manager for Droplets at DigitalOcean and just came across your post. Just wanted to say thank you for putting together this guide!

    Odpovědět