On Sun, Mar 04, 2001 at 11:08:37PM -0800, David Miller wrote:
>    I have a small network of machines and am ssh and scp'ing amongst them
>    quite frequently. I would love to configure ssh so that I do not
>    constantly need to enter a password every time I ssh or scp. I have
>    tried setting up the automatic RSA protocol using the authorized_keys
>    file, following the instructions in 'man ssh' but I still need to
>    enter my password every time, even though the instructions indicate
>    otherwise.

Make sure it is prompting for your private key's _passphrase_ not your Unix
password. If not, use 'ssh -v' to see what is happening - usually wrong
permissions on .ssh/authorized_keys at the server side.
  chmod 755 .ssh
  chmod 644 .ssh/authorized_keys

Once you have RSA authentication working: man ssh-agent

Short version:
$ ssh-agent bash
$ ssh-add
<enter your passphrase>
$ scp file remote:file
[doesn't prompt for passphrase, gets it from the agent instead]

If you are using X, it's best to make ssh-agent a parent of your whole X
session: type "ssh-agent startx" instead of just "startx"

Brian.

Reply via email to