By romama
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 mydomain.com”
Is there a way to connect via SSH as it was working before the resizing? Thanks!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Sometimes it could be the SSH port (22) doesn’t allowed by default when machines restarted.
If you could login to root, you might need to run the following command:
sudo ufw allow ssh
Maybe you are using a wrong SSH port for connecting. Just a thought, maybe it is not correct.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.