Do you find yourself connecting on a massive amount of servers? Some according to domain, some according to hostname, some according to /etc/hosts file definitions, some according to IP and so forth?
Do they change either definition with time? Does your SSH client complain about this? (MITM attack usually...)
Do you find yourself spending way too much time on editing and deleting lines from ~/.ssh/known_hosts? Would you like a trick that will make it all much simpler?
function sshdel { perl -i -n -e "print unless (\$. == $1)" ~/.ssh/known_hosts; }prices may vary, batteries are not included, copyright withheld, patent pending
Re:SSH hosts
xsawyerx on 2008-12-29T17:49:30
That actually sounds like a cool idea, but in most cases the changes of IP numbers are pretty extreme. So I have to both the previous IP association and create the new IP association, so this wouldn't fit me too much.
But if you're using more static addresses to your hosts, that's a pretty cool thing. I'll be reading up on it.
Thanks.