Question

My server keeps refusing my FTP connection.

Hi,

I just (maybe like two hours ago now), purchased a $5/mo DO VPS. I selected Ubuntu with LEMP pre-installed on the image.

Now I changed my domain to point at the IP (and it works, I get the “welcome to Nginx” page if I go to the IP/Domain Name), but I’m having issues uploading files.

I open Filezilla, input the server IP, “root” as the username and my password. I select SFTP as the type of connection.

However, after a few seconds I get the following error message:

Error:	Authentication failed.
Error:	Critical error
Error:	Could not connect to server

Obviously this is really irritating as it basically means I can’t upload any sites. If anyone could help me out that’d be great.


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.

Hey Josh,

That sounds frustrating indeed! I couldn’t reproduce your exact error message, but have a feeling your authentication is getting hung up because you’re using the default root password. For security purposes, you must change your password as soon as you log in to your droplet. FileZilla doesn’t provide that prompt, so you’ll have to log in through SSH.

I’m using the web console, but you can do this inside your favorite SSH client (like PuTTY for Windows, or Terminal for Mac):

  1. Go to your DigitalOcean Dashboard
  2. Select your droplet
  3. Click the “Access” button
  4. Click on the blue “Console Access” button
  5. When prompted for hostname login: _, enter root
  6. When prompted for Password: _, enter your password
  7. Follow the prompts to change your password
  8. Go to FileZilla, and you should be able to login through SFTP & your new password

Let me know if that works for you, or if the error persists!

Cheers, Derik

Hi, In digital ocean hosting,under project fbistapps and same droplet,I am not able to connect via sftp through filezilla.

Steps follows:- 1- I reset password and received password at mail. 2- From access console I changed password. 3- Trying to connecting via sftp and user name and password but don’t able to get connected.

Error Showing:- 1- Error: Disconnected: No supported authentication methods available (server sent: publickey) Error: Could not connect to server Status: Disconnected from server

What should I need to done to get rid of this issue.Any support will be appreciated.

same thing is hapening to me as sumant, additionally i can sometimes connect with fillezilla but 80-90% of my connection attempts fail, sometimes it works right after i restart the droplet

edit : similar experience of 80-90% failure with putty