Newbie Server questions (Website down post reboot &SSH keys)

Hi there,

I’m very new to digital ocean (apologizes for lack of knowledge). I have been trying for days to get FTP or SFTP access into my droplet, and every time it’s coming back at me with public key error. After searching around, it’s due to SSH key pairs. So I generated a pair and tried to upload the public pair to my server, but got rejected again for public pair error. I have been following all the tutorials from DigitalOcean so I’m at a loss for what to do.

I’m now stuck because I had to reboot the droplet last night for increase in capacity, and now my site has gone dark. I can’t figure out how to “reinitiate” web hosting? And I can’t even get into the server through FTP to get access to my files.

Unfortunately I am not the one who set this site up so I am not the most familiar with it, and of course those who set it up at MIA.

Any help at this point would be more than appreciated. I am starting to lose it with how overly complicated this has become.

(I have root access and can log into the console, plus please keep it fairly simple because I don’t have the technical language of Ubuntu yet)

Thanks so much, Colin

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


I’m sorry about the trouble this is causing for you. While I recommend SSH keys, I think they can be an extra layer of confusion for someone going through all of this for the first time. In my opinion, master this workflow with passwords first, and then graduate to keys.

In /etc/ssh/sshd_config, make sure these variables are set to the following values:

PermitRootLogin yes
PasswordAuthentication yes
Subsystem       sftp    /usr/lib/openssh/sftp-server

Then restart SSH:

systemctl restart ssh

If you need help editing the file from our console, check out this guide:

You should then be able to use password login from your FTP client, using the SFTP (not FTPS) protocol over port 22. Keep your password significantly difficult, never forget the greatest eye opener: