Filezilla: My key doesn't work, but I can connect via ssh with the same key

Viewed 16

I'm using Filezilla to connect (SFTP) to dozens of AWS EC2 machines and everything has been working. I am using the same private/public key pair everywhere.

I have a new machine now, Ubuntu 22. I added my public key on the machine. I verified everything is working because ssh -i /path/to/my.pem ubuntu@XXX.XXX.XXX.XXX is working.

Of course I have the /path/to/my.pem key added in Filezilla settings (otherwise I would not be able to connect to all the other machines)

I try to connect to the new machine with Filezilla. And it's not working.

Log output is this:

Command:    keyfile "/path/to/my.pem"
Command:    open "ubuntu@XXX.XXX.XXX.XXX" 22
Error:  FATAL ERROR: No supported authentication methods available (server sent: publickey)
Error:  Could not connect to server

I am clueless. How come the same user, ip, port and private key work via SSH and not work in filezilla (and only for that one machine). Is it something new in Ubuntu 22 server that I need to configure?

0 Answers
Related