[kanchilug] [Tip] View ~/.ssh/known_hosts key information

  • From: "Tha.Suresh" <jemenisuresh@xxxxxxxxx>
  • To: ilug-bengaluru@xxxxxxxxxxxxxxxx, puduvailug@xxxxxxxxxxxxx, ILUG-C <ilugc@xxxxxxxxxxxxx>, KanchiLug <kanchilug@xxxxxxxxxxxxx>, Linux Delhi <iitdlug@xxxxxxxxxxxxxxxx>, Linux Delhi <ilugd@xxxxxxxxxxxxxxxxxxxxx>, Mlug <glug-meerut@xxxxxxxxxxxxxxxx>
  • Date: Wed, 18 May 2011 15:49:28 +0530

View ~/.ssh/known_hosts key information

$ ssh-keygen -l -f ~/.ssh/known_hosts

Will return the SSH server key information for each host you have in your
~/.ssh/known_hosts file, including key size, key fingerprint, key IP address
or domain name, and key type.

Ex:

[suresh@mercury ~]$ ssh-keygen -l -f ~/.ssh/known_hosts
2048 e9:6e:9a:20:53:04:66:87:6d:af:29:71:29:ab:3b:46 192.168.1.3 (RSA)
2048 0f:6f:24:7c:e0:33:29:db:71:76:d7:88:2f:38:0a:f2 192.168.1.8 (RSA)
2048 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48 github.com,207.97.227.239
(RSA)
2048 8b:48:5e:67:0e:c9:16:47:32:f2:87:0c:1f:c8:60:ad heroku.com,50.16.232.130
(RSA)


-- 
Warm Regards,
Tha.Suresh


My experiences with Linux:  http://thasulinux.wordpress.com

Other related posts:

  • » [kanchilug] [Tip] View ~/.ssh/known_hosts key information - Tha.Suresh