Jay Taylor's notes
back to listing indexAaron Toponce : Making Sense of Hashed Hosts in ~/.ssh/known_hosts
[web search]
Original source (pthree.org)
Clipped on: 2019-01-09
|1|F1E1KeoE/eEWhi10WpGv4OdiO6Y=|3988QV0VE8wmZL7suNrYQLITLCg= ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgwCZx9lGaY+Zhz98TdWqZ01mTzOwRnQO0EIBM8Hx8olxMbrQ1Xa+x/7LBoGyJqeYFunZbFCVpAu+2SBkvf75qV8nTlq3WXnLnprsH5Sq/c9f29ZCcMHevI
The host name is 192.168.1.61
The following is how to apply the salt/key to get the hashed host name:
$hex_key=$(echo $(echo F1E1KeoE/eEWhi10WpGv4OdiO6Y= | base64 -d | xxd -p));echo $(echo -n 192.168.1.61 | openssl sha1 -mac HMAC -macopt hexkey:$hex_key)|awk '{print $2}'|xxd -r -p|base64
3988QV0VE8wmZL7suNrYQLITLCg=
So, 3988.....Cg= is the hashed value of 192.168.1.61.
"I don't expect you to follow this post completely, but it's so amazingly cool, I have to blog it." - and the award for most arrogant sentence of the day goes to....YOU!!!!
Post a Comment
Your email is never published nor shared.
Name
Email
Website
Comment
Subscribe
-
Read on mobile
-
Search
Archives
ArchivesWeb sites
Pages
Meta