So Dennis? (whose name doesn’t appear anywhere on his blog except for in the URL) wrote a cool bash script to create aliases for every host in your ~/.ssh/known_hosts file. I found some bugs/problems so I spiffed it up a bit. As the comments say, you should pipe the output to sort(1). I’ve tried to …
Tag Archives: ssh
Bash & Screen
You may be familiar with my tutorial on getting your ssh-agent to work inside screen. If not, have a look. There’s always room for improvements! Here’s an excerpt from my current .bash_profile: function Attach(){ grabssh if [[ -z “${1}” ]] ; then local n=`screen -wipe | egrep -i ‘attached|detached’ | wc -l` if [[ “${n}” …