Ubuntu and ssh-agent
Dear Reader, it turns out that those frightfully clever chaps in the Ubuntu bunker (or it may be the Debian bunker) have done the decent thing and installed ssh-agent so that it runs automagically. This means that to get ssh-agent working on your machine you actually have to do very little, more detail is provided here, but the essentials are:
- Generate a private key
ssh-keygen -t dsa - Copy this key to the correct place on the remote machine, usually this is
~/.ssh/authorized_keys - Type in
ssh-addbefore you start doing anything fun on the local machine. This requires you to enter your local pass phrase. You can also set up Ubuntu to ask you this pass phrase at login.
September 24, 2010 at 11:16 am
May I know how I can setup Ubuntu to ask the passphrase at login?
October 3, 2010 at 11:11 am
I’d suggest trying
ssh-add -crather than justssh-add. If you want to remove the identities you have added usessh-add -D.Perhaps I am being wilfully insecure but I tend not to bother entering the pass phrase each time as it is never transmitted over the internet and is useful only when your private key has been stolen. At least according to the guidance.