I do this at work.  I created dsa keys for ssh v1, ssh-keygen -d i believe.
its in the man page.  i stuck the resultant pub key in my ~/.ssh/known_hosts
file in the hosts i want to connect to, and run something like this

scp -l root host command

and it works.  password authentication is the last authentication method ssh
tries i believe.  so if something before that, like my dsa keys, pass, it
works.

Jason

>
> Yet another newbie question.
>
> scp asks for a password.  How can I cause it to
> not ask for the password so I can use scp in a script.
>
> I looked in the FAQ but saw nothing, so I'd appreciate it
> if someone pointed me in the right direction
>
> TIA
>
> -----------------------------------------------------
> Walter North 406-444-2914
> Operating Systems Programmer
> [EMAIL PROTECTED]
>
> Why be difficult when, with a bit of effort,
> you could be impossible?
> -----------------------------------------------------
>
>

Reply via email to