Your public key should be in ~/.id_rsa.pub. Using "ssh user@server" will use that key.
Is the server configured for public key authentication?
You can try logging in like "ssh -v user@server" and see that the verbose messages says about public key authentication.
Code:
ssh -v hpmedia
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to hpmedia [127.0.0.2] port 22.
debug1: Connection established.
...
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /home/jschiwal/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/home/jschiwal/.ssh/id_rsa':
If the server accepts password authentication, you may have had a "ssh-copy-id" program that could have added the key to the servers authorized_keys file for you.
ssh-copy-id [-i [identity_file]] [user@]machine
After opening a konsole on the local machine, I can use:
eval $(ssh-agent)
ssh-add
And then enter my passphrase once. After that the server won't ask for the passphrase each time I log in.
You may also want to disable password authentication on the server.
You could also use "PasswordAuthentication" in a ~/.ssh_config file. In the present situation, your login would fail however. Password authentication should be disabled on the server to prevent brute force username/password attack.