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-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
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...