Oreilly O really
Bruce Marshall
bmarsh
Tue Nov 2 07:48:33 PST 2004
On Monday 01 November 2004 11:06 pm, James McDonald wrote:
> >> 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"
SuSE 9.1 which uses openssh-3.8
--
+----------------------------------------------------------------------------+
+ Bruce S. Marshall bmarsh at bmarsh.com Bellaire, MI 11/02/04 08:15 +
+----------------------------------------------------------------------------+
"Monday is an awful way to spend 1/7th of your life."
More information about the Linux-users
mailing list