Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

bernid

I tried and then WinSCP works fine. Thank you!
bernid

Hi,
After Ubuntu server upgrade to 22.04 suddenly I can't connect to my Ubuntu server using WinScp. I receive the same message:
No supported authentication methods available (server sent: publickey)

See attached log.
This is strange since using the same key I can connect to my machine using putty or Android JuiceSSH
I have added
ela ALL=(ALL) NOPASSWD:ALL
line using visudo.
What to do to restore WinScp access to my Ubuntu server?
kevinantao

Unable to login to ubuntu ec2 instance, thought login to RHEL instance is success

I have launched two instances - a RHEL and a ubuntu instance (on AWS EC2), both using the same KeyPair.

1. Using Winscp, I am able to login to RHEL instance. Log attached.
2. However during login to ubuntu instance via WinScp, receiving the error "No supported authentication methods available (server sent: publickey)". Log attached.
3. Surprisingly, I am able to sftp to ubuntu instance via command prompt.

Attached are the success logs (of RHEL) and failure logs (via ubuntu)
martin

Re: Error - No supported authentication methods available (Server sent: Publickey)

Please post logs files from both with the same settings.
marahim501

Error - No supported authentication methods available (Server sent: Publickey)

I'm using WinSCP SFTP Client to connect.
It's working fine with FileZilla but errors with WinSCP.