Simple lines of code to clean invalid hosts from your .known_hosts-file.
ssh-clean-keys () { for host in $1 $(dig +short $1); do echo "Cleaning $host"; ssh-keygen -R $host 2>&1 | sed -e 's,^,I,g'; done }
July 8, 2008
Simple lines of code to clean invalid hosts from your .known_hosts-file.
ssh-clean-keys () { for host in $1 $(dig +short $1); do echo "Cleaning $host"; ssh-keygen -R $host 2>&1 | sed -e 's,^,I,g'; done }
No comments yet.
RSS feed for comments on this post. TrackBack URL
Powered by WordPress