I just added an alias to my zshrc that I thought was worth sharing:
# securiSH SHell: Make it easy to ssh without worrying about host keys.
alias shsh="ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
For those times when you're installing a machine and you know the ssh
keys are temporarily wrong, it's nice to be able to quickly get around
ssh's babying.
I was also thinking it would be nice to add an alias to quickly "reknow"
a host from known_hosts whose key has changed (without having to
manually edit known_hosts). I think it would look something like this:
function sshr {
host="$1"
ssh-keygen -R "$host"
ssh "$host"
}
Unfortunately, it doesn't deal with the case that you want to ssh has a
different user, and it doesn't check IP addresses. So it's not a
perfect solution, but it's a start.
--
Andrew McNabb
http://www.mcnabbs.org/andrew/
PGP Fingerprint: 8A17 B57C 6879 1863 DE55 8012 AB4D 6098 8826 6868
--------------------
BYU Unix Users Group
http://uug.byu.edu/
The opinions expressed in this message are the responsibility of their
author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG.
___________________________________________________________________
List Info (unsubscribe here): http://uug.byu.edu/mailman/listinfo/uug-list