[vox-tech] [OT] Pumping a password using Expect
timriley
timriley at appahost.com
Fri Jan 6 08:52:56 PST 2006
---------- Original Message ----------------------------------
From: Ken Bloom <kbloom at gmail.com>
Reply-To: "lugod's technical discussion forum" <vox-tech at lists.lugod.org>
Date: Thu, 5 Jan 2006 21:48:10 -0600
On Thu, Jan 05, 2006 at 06:33:40PM -0700, timriley wrote:
> How do you have a crontab executed process using Expect
> pump a password to another computer?
Ken Bloom wrote:
> Is this an SSH password you're giving it? If so, try using an SSH
> keypair for authentication. A passwordless key is no less secure than
> having the password in the expect file (it's probably more secure),
> and you can even create single-purpose keys that can only be used to
> run a single command (see http://www.arches.uga.edu/~pkeck/ssh/,
> scroll down to "Single-purpose keys")
My ultimate goal is to use public/private key pairs after I cross
the learning curve. Thanks for the resource:
http://www.arches.uga.edu/~pkeck/ssh/ . However, if someone
knows of a simple Expect flag to generate a tty when one
is missing, I'd appreciate the quick solution.
More information about the vox-tech
mailing list