how to automate scp transfers?

jmurray at whoi.edu jmurray at whoi.edu
Mon May 21 18:12:19 UTC 2007


Quoting Xn Nooby <xnooby at gmail.com>:

> I need to automate some scp file transfers between a PXE-booted client and
> it's Server.  Apparently, I cannot automatically supply the Server account's
> password as an argument.  Since the PXE-based machine is coming from a
> generated image, I do not reaaly have access to it in order to run
> ssh-keygen.  I don't know a lot about SSH or private/public keys, that why I
> was hoping to supply the password as a command-line argument to scp.  This
> is in a fairly secure environment, but we are trying to use scp instead of
> something that needs another server (like ftp).  Any suggestions on how to
> automate scp file-transfers?
>


Can you generate the image with the key keys in it already? Or maybe you can use
tcl/expect and send a passwd.

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.





More information about the ubuntu-users mailing list