Ubuntu – Disconnected: No supported authentication methods available (server sent: publickey)

serversftpssh

It is as the title says. When I try to connect to my sftp server with filezilla it says the following "Disconnected: No supported authentication methods available (server sent: publickey)", however before this message comes a window pops up asking me if I trust the servers host key and I say yes. Futhermore I can't find my .ssh directory anymore which contained the authorized_keys file. I am a little confused. Have anyone of you guys any tips or ideas to solve this issue?

Thanks on beforehand.

Best Answer

Your server is configured to deny anything else than public key-based authentication.

If you have lost your .ssh (and hence, your RSA, DSA, .... key pair), then you can no longer login to your remote system.

Depending on who's hosting this remote system, you may be able to use some KVM over IP, VNC console, ... reboot the server on some liveCD, ... Point is: if you can't find a copy of your SSH key pair, then you'll have to enable password-based authentication somehow.

Related Question