How to let putty display a different key format?

sam1275tom

Reputable
Oct 13, 2014
462
0
4,860
Hello.
Here's a example to show my question: I setup a ssh server on centos, then I use "ssh 127.0.0.1" on the same machine, then I take a note for the key. But when I connect it using putty on a windows machine, the key putty shows is different from I previous seen on the centos.
This happens on some other cases as well, above is just a example. So how can I change the key format that putty shows, so I can compare it to the key shown on the server itself?
Thanks.
 
Are you talking about how ssh uses a different security key format than putty? On the Putty web site there is a tool that will convert linux generated ssh keys into the .ppk used by putty (or .ppk to ssh). It's function in the puttygen.exe program if I remember correctly
 


I don't think so, there's many cases in a local test (so no MIM attack), Linux/putty/winscp all display different keys, so they must be different format.
 


I searched that, but that seems to use for client public key log on, not for verify server keys.
 


Yes, I'm trying to get the correct format so that I can verify the fingerprint, they will not match sometimes due to wrong format, even if the certificate is right. So when not in a controllable environment, I cannot tell if the certificate is right.