Question

SFTP to Root fails

I’ve been trying to sftp to the root directory

droplet ip user: root pass: same pass I use on the droplet console

and I get this Error: Authentication failed. Error: Critical error: Could not connect to server

I’ve cleared my system, updated filezilla even rebooted my computer and it still does that.

What I need to do is get to my csr that i created so I can install an ssl

any help, I would be grateful for… thanks

dave


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.

Hi There,

It may be that you have SSH connections disabled for the ‘root’ user?

From the command line, check the following file:

/etc/ssh/sshd_config

If you see the following line:

PermitRootLogin yes

Then root login as been disabled over SSH/SFTP.

If you are able to login to the root account over SSH, you may want to double check the password for case sensitive letters or extra spaces.

One way to test out what is going on is to create an ordinary user and SFTP your information to that account on your droplet.

Then, by command line, you can move that information from the newly created user account to the root account. I would recommend to disable root login at some point as this is best practise, and there are lots of SSH bots that will try to brute force login the root account.