SUMMARY: scp without asking passwd

2007-12-25 4:58:00

Thank you all. It is definitely too many to list individually!

1. use "ssh-keygen -t dsa" to generate the id_dsa and id_dsa.pub file in
~/.ssh/
2. scp id_dsa.pub to target computer's home directory
3. chmod 0600 .ssh/id_dsa.pub
4. login target computer, run following command:
cat id_dsa.pub >> .ssh/authorized_keys

in my case, it wouldn't work without step 3.

Thanks again.

Feng

Feng Qiu wrote:

> Hello, all,
> I am trying to use scp in a script to cp files between two Blades with
> Solaris 8. How to set public key(?) or something to avoid prompting
> for passwd?
> Thanks.
> Feng

Comments

Got something to say?

You must be logged in to post a comment.