Oreilly O really
James McDonald
james
Mon Nov 1 23:16:00 PST 2004
>> and then copying the resulting public key to the target box, again as
>> root
>>
>> scp .ssh/id_rsa.pub target_server:.ssh/authorized_keys2
>>
>
> Another method of doing this:
>
> ssh-copy-id -i .ssh/id_rsa.pub <user>@<hostname>
>
> The above is good for more than one host. I think your method would
> overwrite
> the authorized_keys2 file if you did it from more than one server....
> thus
> losing the key for the first server.
I couldn't find ssh-copy-id on my Redhat FCx boxes... what distro you
running?
I suppose the better thing would be to do a
cat .ssh/id_rsa.pub | ssh servername "cat >> .ssh/authorized_keys2"
More information about the Linux-users
mailing list