SFTP to Root fails

Posted March 13, 2018 7.7k views

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


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.

Submit an Answer
1 answer

Hi There,

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

From the command line, check the following file:


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.