TransWikia.com

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

Ask Ubuntu Asked by KV-2 on December 11, 2020

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.

2 Answers

Please do not laugh, but make sure that you have not renamed that user's home directory as defined in /etc/passwd. I had long ago and since forgotten about it (I SSH with another account and sudo su over). Finding my error was hours long, but changing the folder name and rebooting was less than 60 seconds.
username:x:1007:1007::/var/www/new_folder:/bin/bash

Answered by wruckie on December 11, 2020

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.

Answered by SYN on December 11, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP