Robot Has No Heart

Xavier Shay blogs here

A robot that does not have a heart

Passwordless Login

I’ve been typing in SSH passwords for ever now. For some reason I just assumed it was a pain to setup passwordless login. Wrong! It took me about 10 minutes. Ubuntu already has all the tools you need.

1
2
3
ssh-keygen -t rsa -f ~/.ssh/id_rsa -C "xavier@home"
ssh-add ~/.ssh/id_rsa
cat ~/.ssh/id_rsa.pub | ssh xavier@remote_host 'cat - >> ~/.ssh/authorized_keys'

Repeats steps 3 and 4 for each remote host.

It just works. And you know how much I like that.

Reference

Post a comment


(lesstile enabled - surround code blocks with ---)

A pretty flower Another pretty flower