Question

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

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


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.

Hello,

You can re-try copying the key via ssh. You can also use the ssh-copy-id command in order to do so. An example will be:

  1. ssh-copy-id -i ~/.ssh/mykey user@host

If currently, you can not connect using ssh-key and the PasswordAuthentication is disabled you can follow the steps below:

You can enable PasswordAuthentication for your Droplet by modifying your /etc/ssh/sshd_config file. Once set to Yes restart the SSH service and connect via an SSH client for a more stable connection. You can then modify your ~/.ssh/authorized_keys file to add the appropriate public key.

This change can be made from DigitalOcean’s console. If you’re having issues accessing the console you can then reach to our amazing support team that can help you further with this.

To enable the PasswordAuthentication follow these steps:

  1. Login to the console on the DigitalOcean website.
  2. Type sudo nano /etc/ssh/sshd_config
  3. Change PasswordAuthentication from “no” to “yes” and save the file
  4. Open a terminal on your computer and type ssh username@[hostname or IP address] or if on a Windows box use PuTTY for password login making sure authentication parameters aren’t pointing to a private key
  5. Login with a password
  6. Type sudo nano ~/.ssh/authorized_keys
  7. Paste public key text here and save the file
  8. Type sudo nano /etc/ssh/sshd_config
  9. Change PasswordAuthentication from “yes” to “no” and save the file
  10. Log out and attempt to log back in (if using PuTTY make sure you set up auth parameters to point to your private key)

You can then upload the key using this command:

  1. ssh-copy-id -i ~/.ssh/mykey user@droplet

Hope that this helps! Regards, Alex

I decided to find a tutorial from a site I frequently check, https://www.linuxbabe.com/redhat/generate-centos-ssh-public-key

I usually use DO to add my ssh key or just copy/paste it into my authorized_keys file myself. I tried using the ssh-copy-id command she recommends though, and that seems to make everything play nice. Pubkey with ssh and FZ now works again.

Let me know if you have any questions.

Best, John

Yep, I think that’s what they are asking about. The keyfiles suddenly do not work. Not sure if it’s a new protocol in FZ or DO but using an ssh key no longer works for me. It does not connect to the server. I’ll reply if I find a fix.