Animesh Asked: 2011-02-05 04:09:04 +0800 CST2011-02-05 04:09:04 +0800 CST 2011-02-05 04:09:04 +0800 CST How to manually know the RSA2 key finger print? 772 When I grep in the etc folder, I get this message: grep: ssh_host_rsa_key: Permission denied. Since I am on cygwin, I can't use sudo or something else. Please let me know how to find it out. ssh rsa 2 Answers Voted Best Answer Animesh 2011-02-05T05:21:23+08:002011-02-05T05:21:23+08:00 ssh-keygen -l -f /etc/ssh_host_rsa_key.pub This command will output just the fingerprint like this: 2048 9e:1a:5e:27:16:4d:2a:13:90:2c:64:41:bd:25:fd:35 /etc/ssh/ssh_host_rsa_key.pub -f is for filename -l is to output the fingerprint of the public key file. Output consists of three parts bit length of the key: 2048 finger print of the key: 9e:1a:5e:27:16:4d:2a:13:90:2c:64:41:bd:25:fd:35 name of the key file: /etc/ssh/ssh_host_rsa_key.pub I would like to request experts on this matter to point any shortcomings in this method. mkudlacek 2011-02-05T04:27:21+08:002011-02-05T04:27:21+08:00 Sudo is aditional package, which has to be installed during Cygwin installation. Have you tried su to become superuser? Anyway, you can always view content of the Cygwin files from Windows...
This command will output just the fingerprint like this:
-f is for filename
-l is to output the fingerprint of the public key file.
Output consists of three parts
2048
9e:1a:5e:27:16:4d:2a:13:90:2c:64:41:bd:25:fd:35
/etc/ssh/ssh_host_rsa_key.pub
I would like to request experts on this matter to point any shortcomings in this method.
Sudo is aditional package, which has to be installed during Cygwin installation. Have you tried
su
to become superuser?Anyway, you can always view content of the Cygwin files from Windows...