#Creates hostname ssh command of all machines accessed #by Quierati #Use in .bashrc #Use "HashKnownHosts no" in ~/.ssh/config or /etc/ssh/ssh_config #If known_hosts is encrypted and delete known_hosts [ ! -d ~/bin ] && mkdir ~/bin for host in `cut -d, -f1 ~/.ssh/known_hosts|cut -f1 -d " "`; do [ ! -s ~/bin/$host ] && echo ssh $host '$*' > ~/bin/$host done [ -d ~/bin ] && chmod -R 700 ~/bin export PATH=$PATH:~/bin