I cannot login via SSH after a droplet resize, is this normal?

January 15, 2015 1.1k views

I needed to resize a droplet that I accessed via SSH keys, when I created the original droplet with a 1-click-install (ubuntu/rails) I avoided the root password email and went directly with the SSH key in the control panel UI.

I also disabled the root login with "PermitRootLogin without-password"

Then I turned the droplet off using "poweroff" and resized it. Now, the new resized droplet is asking me for a password when I "ssh"

Is there a way to connect via SSH as it was working before the resizing? Thanks!

  • Edit the file ~/.ssh/authorized_keys and append the public key part of your SSH key. Create the file if it is missing. You probably know it, but just in case, the tilda (~) is the home directory of the user you are logging in with.

  • Also, if you can't login as root and didn't have an alternate login account (a non-root account with sudo access), then you may want to look at the recovery boot image tutorial. The ISO image boot is probably the section you'll want to use.

    by Justin Ellingwood
    Linux includes a filesystem checking utility called fsck that can be used to recover your system in cases of corruption. In this guide, we will discuss how to attempt to recover your filesystem if there are filesystem issues by using the fsck kernel and a recovery ISO.
1 Answer

Maybe you are using a wrong SSH port for connecting. Just a thought, maybe it is not correct.

Have another answer? Share your knowledge.