[SOLVED] Server's Host Key is Unknown - Hashes do not match.

banderas20

Member
Joined
Aug 1, 2018
Messages
46
Reaction score
18
Credits
307
Hi.
I'm trying to setup an SFTP connection between Filezilla client (Windows) and a Debian server.
When I try to establish the connection, Filezilla says:


"Server's Host Key is Unknown"
Details:
Server algorithm: ssh-ed25519 256
Fingerprints: SHA256 and MD5.
I know for sure the server is the right one (it's a home lab).
If I go to the server and issue an


sha256sum /etc/ssh/<whatever file>,
it doesn't give me the same checksum result.
¿What am I doing wrong?
¿How can I know which key is Filezilla checking?


Thanks!
 


KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
8,549
Reaction score
7,306
Credits
69,523
Hmm... I don't have a solution. I do have a question. In FileZilla, what's your login type at this screen?

Selection_049.png
 
OP
B

banderas20

Member
Joined
Aug 1, 2018
Messages
46
Reaction score
18
Credits
307
Hi. My login type is

SFTP (same as your screen)
Login type: Prompt for password.

Thanks!
 

KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
8,549
Reaction score
7,306
Credits
69,523
Have you tried using SSH to establish a connection to the Debian box?

I'm not sure which folders hold the keys in Windows, but I'd look for a "matching" key in what's probably a /.ssh type of folder (no clue where that is on Windows) and delete it. It looks like you've stored a key that no longer matches the server. I've had this happen on Linux for reasons unknown and removing the offending existent key solved the issue.
 
OP
B

banderas20

Member
Joined
Aug 1, 2018
Messages
46
Reaction score
18
Credits
307
Hi!

I already solved this. It was a matter of encoding of the file. If i run ssh-keygen -l <file> (instead of sha256sum) i get the same result as Filezilla tells me.

So this thread can be closed.

Thanks everyone for your support! :)
 
MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com

Members online


Latest posts

Top