Creating user accounts....

Robert G. Brown rgb at phy.duke.edu
Fri Feb 14 05:07:51 PST 2003


On Fri, 14 Feb 2003, Mike Eggleston wrote:

> On Thu, 13 Feb 2003, RANGI, JAI wrote:
> 
> > 
> > Yeah this is also a good idea,
> > 
> > one line ftp can be done this way 
> > Root $ scp /etc/passwd root at node1:/etc/passwd 
> > it will ask for a password type the password and your done
> > 
> > and do the same for all three files and on all nodes..
> > 
> > I was thinking of writing a script for this and run the script for that I
> > was thinking of using scp command in batch mode by using the options -B like
> > this and should not ask for password 
> > 
> > root $ scp -B /etc/passwd root at node1:/etc/passwd   
> > //but it says
> > Permission denied (publickey,password).
> > lost connection
> > 
> > Any idea how to fix this 
> 
> use rsync(8)

That's not really a solution -- rsync runs on top of whatever remote
shell is specified, ideally ssh.  The thing he has to do is a) be sure
ssh/sshd is installed on both ends, and read the ssh man pages carefully
to learn how to enable a remote connection with or without a password.
This typically involves building a public key/private key pair, an
ssh_known_hosts file, possibly setting up PAM appropriately.  Some
distributions (e.g. Red Hat these days) install ssh pretty much out of
the box ready to run as far as most of this is concerned, but a firewall
configuration might still be blocking the port.

ssh has a debug mode that can help one figure out why it doesn't work on
any given connection in more detail than this.

Once ssh is installed and configured so that root can execute ssh
commands on remote nodes, then rsync -avz -e ssh is indeed a good way to
automate the maintenance of directory trees or particular files that is
a bit smarter and more efficient than just scp.

   rgb

-- 
Robert G. Brown	                       http://www.phy.duke.edu/~rgb/
Duke University Dept. of Physics, Box 90305
Durham, N.C. 27708-0305
Phone: 1-919-660-2567  Fax: 919-660-2525     email:rgb at phy.duke.edu






More information about the Beowulf mailing list