This file just makes some useful aliases. Put it in ./ssh Here is a sample entry:
Host mysite HostName xxx.xxx.xxx.xxx IdentityFile ~/.ssh/id_rsa User root
Public Key Does not Work
Run ssh with -vvvv to debug. If you see this:
debug1: Offering DSA public key: /home/chuck/.ssh/id_dsa debug2: we sent a publickey packet, wait for reply debug1: Authentications that can continue: publickey,password
It means the key does not match the one on your local machine.
Copying the Key to the Remote Host
ssh-copy-id -i ~/.ssh/id_rsa.pub user@remote-host