Filezilla sftp Error: Disconnected: No supported authentication methods available (server sent: publickey)

November 7, 2019 232 views
DigitalOcean DigitalOcean Accounts

Filezilla sftp Error: Disconnected: No supported authentication methods available (server sent: publickey) why not connect the server

1 Answer

Hi @pacificsofttechltd,

The error means that FileZilla tried all available authentication methods and have not succeeded. In your case, there was only public key authentication method available

Here, you have two options, one would be to enable password authentication and the other would be to add your ssh key to your FileZilla application.

Add SSH Key to FileZilla

Open your FileZilla, go to Edit->Settings->SFTP and there click on Add key file. From there go to your SSH key and add it.

Enable Password Authentication

SSH to your droplet

ssh root@DropletIp

and edit your /etc/ssh/sshd_config. In there search for the following line PasswordAuthentication. By default it’s commented and set to No

# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication no

To enable it change it like so

# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication Yes

Save the file and exit. For the configuration to be loaded, you’ll need to restart sshd

service sshd restart

That’s it, you are ready to go

Regards,
KDSys

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!