![](https://seccdn.libravatar.org/avatar/25cd0c71ba9b760e0f5eea054a296d3b.jpg?s=120&d=mm&r=g)
I use ssh and scp a lot, so I would like to avoid typing in my password every time I want to copy a file, or type a command on my remote server. I know that I should copy my identity.pub, and put it in ~/.ssh over on the remote server, but what else do I need to do? It seems that isn't enough, as I still have to type my password to login.
There are a couple more steps you have to take. Put the contents of the identity.pub file into ~/.ssh/authorized_hosts on the machine you wish to log into. If you have a pass-phrase on the private key, you will probably want to run ssh-agent during login. This way you will only have to type the passphrase once for your login session. You may also want to consider moving to ssh2 rather than ssh1 due to some problems with the protocol. Use ssh-keygen -t to generate ssh2 keys. Then copy then contents of .ssh/id_dsa.pub or .ssh/id_rsa.pub to ~/.ssh/authorized_hosts2 on the remote machine. Email me directly if you have any more questions -- Brian Youngstrom briany@altavista.net