SFTP No supported authentication methods available (server sent: publickey)

Hello, Methods updated here https://easyengine.io/tutorials/linux/setup-sftp/ doesnt work any more.

I tried it with 3 of my AWS EC2 instances but connection with Filezilla & Winscp every one gaves errors Error: Disconnected: No supported authentication methods available (server sent: publickey) Error: Could not connect to server

Please update that or if thats still working then post a solution for mer how ever whenever i try connecting filezilla with user ubuntu & attach private key it connects successfully error is with www-data that is not allowed to access

Please i need solution tell me how to get it dont I have followed all steps @ https://easyengine.io/tutorials/linux/setup-sftp/

Check the /etc/ssh/sshd_config file, there is probably a restriction to login with a simple password.

To connect via SFTP are required 3 steps for new installs! :wink:

  1. Make the steps for create a user and password for SFTP like (https://easyengine.io/tutorials/linux/setup-sftp/).

  2. Then check the file to allow authentication via login /etc/ssh/sshd_config using this command:

sudo nano /etc/ssh/sshd_config

Then, change the line

PasswordAuthentication no


PasswordAuthentication yes

  1. After making the changes, restart the SSH service by running the following command as root:

sudo service ssh restart

:smiley: Now you will be able to log in with the user SFTP!


Thank you for your problem solving quickest answer Saved my browsing :slight_smile: Thanks a Lot :wink:

@naqirizvi You’re awesome mate… :+1: