Question

can't enter in filezilla error server

I generated an ssh key through digital ocean and used putty gen for a private key, when trying to open it through putty following the tutorial this error appears: no supported authentication methods available ( server sent: publickey )


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.

Bobby Iliev
Site Moderator
Site Moderator badge
April 21, 2023

Hi there,

The error message you provided indicates that the server is expecting a public key for authentication, but it’s not being provided or recognized correctly. Here are a few steps to troubleshoot this issue:

  1. Double-check your private key file: Make sure you have the correct private key file generated using PuTTYgen. The file should have a .ppk extension, which is the format PuTTY uses for private keys.

  2. Verify the public key on the server: Ensure that the public key counterpart of the private key you have is added to the ~/.ssh/authorized_keys file on your DigitalOcean server. You can do this by logging in to the DigitalOcean dashboard and checking the SSH keys section.

  3. Configure PuTTY correctly: When setting up your PuTTY session, ensure that you have provided the correct private key file. You can do this by navigating to Connection > SSH > Auth in the PuTTY configuration window and browsing to your .ppk file in the “Private key file for authentication” section.

  4. Configure FileZilla correctly: To set up FileZilla for public key authentication, follow these steps:

    a. Open FileZilla and go to Edit > Settings. b. In the settings window, navigate to Connection > SFTP. c. Click the “Add key file…” button and browse to your .ppk file. d. Save your settings and try connecting to your server again. You can follow the steps here as well:

    https://docs.digitalocean.com/products/droplets/how-to/transfer-files/

  5. Try accessing your Droplet via the Web console and make sure that your SSH key is actually added to the /root/.ssh/authorized_keys file. You can follow the steps here on how to recover from a lost SSH key if needed:

    https://docs.digitalocean.com/support/i-lost-the-ssh-key-for-my-droplet

Hope that this helps!

Best,

Bobby

on sftp

Could not connect to server

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel