[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [users] SSH



also sprach Nick Furman (on Sat, 07 Jul 2001 12:11:29PM -0400):
> I prefer not to use NIS to share the password file between two servers so
> I wrote a script to push /etc/passwd to another server so they both have
> duplicate copies when a user is added onto our system.
> 
> Of course I am using scp to move the file over, but everytime a user is
> added, it asks for the root user's password on the remote server.  Is
> there a way using .rhosts to disable the remote server from asking me for
> a password so it just pushes /etc/passwd over, no questions asked?

have a look into the manpages for ssh-keygen, ssh-agent, and ssh-add.
what you are looking for is RSA authentication.

and two things: you have to push /etc/shadow (and /etc/group) over
too.

and you *should not* ssh into a root account. you should rather scp
the files over as a normal, trusted user, and then call sudo to
install the files -- you can do that over ssh too.

martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck
-- 
"when faced with a new problem, the wise algorithmist
 will first attempt to classify it as np-complete.
 this will avoid many tears and tantrums as
 algorithm after algorithm fails."
                                                          -- g. niruta

Attachment: pgpEHLQ4iSP7b.pgp
Description: PGP signature


Reply to: