I forgot how to do this procedure.
I did on OSX 10.9.1
ssh-keygenin my server
- moved the private-key id_rsa to my laptop's
$HOME/.ssh/id_rsa, removed the private key id_rsa from my server
- create the following
$HOME/.ssh/configin my laptop
Host server.myhomepage.com User masi Port 22 Hostname server.myhomepage.com IdentityFile ~/.ssh/id_rsa TCPKeepAlive yes IdentitiesOnly yes
ssh-add .ssh/id_rsa Enter passphrase for .ssh/id_rsa: Identity added: .ssh/id_rsa (.ssh/id_rsa)
and running more
ssh server.myhomepage.com Saving password to keychain failed
and it asked my passphrase for my id_rsa in a graphical window which I gave correctly but get failed message. Then, it asks in the terminal if I enter correctly the password for my private key but showed still the failed message. I run many times with correct password
Identity added: /Users/masi/.ssh/id_rsa (/Users/masi/.ssh/id_rsa) firstname.lastname@example.org's password: Permission denied, please try again.
I forgot how to do this procedure correctly. How can you have the key in your keychain correctly?