Interesting code
Joylent is still good

I was wondering, how to add a SSH key to a keyring and then connect to my VPS without typing anything complicated, so I ended up making a bash alias and copying a few lines of code from a Unix & Linux Stackexchange conversation.

My code looks like this.

alias VPS="ssh-add -l |grep -q `ssh-keygen -lf .ssh/id_rsa  | awk '{print $2}'` || ssh-add .ssh/id_rsa && ssh <vps_ip>"

I have no idea what it does specifically, but it works and I am happy.


In other news, I have been still drinking Joylent daily and I have started to feel much better. Sometimes when I see a commercial or smell some good food, it makes me lust after them, but I have to keep strong and try to stay on Joylent and not go over my head into eating crappy food that is unhealthy for me. I don’t know if Joylent is healthy for me, but on paper it’s better option than eating a pizza, stuffed with hamburgers and encased in bacon while drinking soft drinks.

*****
Written by Hannu Saastamoinen on 2016-03-15 18:52