Easy SSH authentication with keychain
Typing SSH passwords again and again can be a real pain. For example:
Lately I started to use Capistrano to deploy
my rails applications. If I want to set up the maintenance-page on the
server I’ll type cap deploy:web:disable
which of course
prompts me for the SSH password. Then I want to deploy my application
with cap deploy
and again will be prompted for the
password. Finally I have to cap deploy:web:enable
to remove
the maintenance page which as mindful readers might have guessed
already prompts for the password. This was just one reason for me to
set up SSH authentication keys. At first I was a little worried that
setting it up might be a bit complicated. Luckily I was disabused. If
you want to switch to key based authentication too follow these simple
steps.