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).

> Trivial.

        Agreed...

> -- 
> Cameron Simpson, DoD#743        [EMAIL PROTECTED]    http://www.zip.com.au/~cs/
> 
> Endless Loop: n., see Loop, Endless.
> Loop, Endless: n., see Endless Loop.
>       - Random Shack Data Processing Dictionary
> 
> 
> -- 
> To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> as the Subject.

-- 
 Michael H. Warfield    |  (770) 985-6132   |  [EMAIL PROTECTED]
  (The Mad Wizard)      |  (770) 331-2437   |  http://www.wittsend.com/mhw/
  NIC whois:  MHW9      |  An optimist believes we live in the best of all
 PGP Key: 0xDF1DD471    |  possible worlds.  A pessimist is sure of it!


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

Reply via email to