Skip to content

Instantly share code, notes, and snippets.

@psgganesh
Last active March 10, 2018 20:17
Show Gist options
  • Save psgganesh/afc710d4c16f965455753a3d5e427582 to your computer and use it in GitHub Desktop.
Save psgganesh/afc710d4c16f965455753a3d5e427582 to your computer and use it in GitHub Desktop.
Unable to access digital ocean after rebuild droplet ?
Login to console using digital ocean's browser based shell, login using root and the new password generated,
and carry on with below steps
sudo nano /etc/ssh/sshd_config
Change
UsePAM yes
IgnoreUserKnownHosts no
PasswordAuthentication no
To
UsePAM no
IgnoreUserKnownHosts no
PasswordAuthentication yes
Save and Reload SSH
sudo service ssh reload
If really needed login with password and revert back the changes
Save and Reload SSH
sudo service ssh reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment