Report this

What is the reason for this report?

SFTP to Root fails

Posted on March 13, 2018

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



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!

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.

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.