Thank you Michael, Cameron and Todd.

And yes Michael, I appreciate the more clear explanation.  No I'm certainly
not a bash guru.  But after analysing the command, it makes perfect sense.

Anyway, thanks to all.

Mike


> -----Original Message-----
> From: Michael H. Warfield [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 03, 2000 7:04 AM
> To: Cameron Simpson
> Cc: [EMAIL PROTECTED]
> Subject: Re: SSH ? (probably a BASH question)
>
>
> On Wed, May 03, 2000 at 08:09:13PM +1000, Cameron Simpson wrote:
> > On Wed, May 03, 2000 at 01:40:33AM -0700, Mike Lewis wrote:
> > | Trying to setup passwordless login using rsync and ssh.
> > |
> > | Suppose you have hostname1 that multiple machines will be
> connecting to
> > | using rsync / ssh.  When setting up the first machine
> (hostname2) to have a
> > | passwordless login you would use:
> > |
> > |   scp identity.pub
> user@hostname1:/home/username/.ssh/authorized_keys
> > |
> > | Now we move to hostname3.  Is there a way to append
> identity.pub to
> > | hostname1:/home/username/.ssh/authorized_keys using scp
> or does this
> > | necessitate using vi and a temporary file ?
>
> > ssh -l user hostname1 'cat >>/home/username/.ssh/authorized_keys'
>
>       Just to pick a nit or two...
>
>       I they couldn't have figured this one out for themselves, should
> you also point out that they need to cat their identity.pub files into
> the ssh command, like this:
>
>       cat ~/.ssh/identity.pub | \
>       ssh -l user hostname1 'cat >> ~/.ssh/authorized_keys'
>
>       BTW...  Use ~/ instead of /home/username just in case their
> home directory is NOT in /home (like root).


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to