epike on Tue, 04 Feb 2003 18:41:03 -0500


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

Re: [PLUG] Perl question


not exactly a perl solution but you can
probably do better with using ssh pubkey
authentication so as to avoid password
prompt.  

the idea is to store your private key
on your local server, and store
the private key on the remote server---no
passwords required (and actually safer).

also rsync is another good option (rsync -e ssh)

epike

> 
> I'm working on a Perl program which will use an external utility (scp) to copy 
> a file from another server to the one it's on.  The problem is the utility 
> asks for a password, and the Perl script must respond to it.  I know there's 
> an "Expect" PM I can use, but it's not on the machine currently and I'd like 
> to avoid the fight I'll get over adding more Perl modules (they already hate 
> that I'm using Perl, despite the fact that it's already on the machine).
> 
> Any ideas would be appreciated.
> 
> 	-Beldon
>

_________________________________________________________________________
Philadelphia Linux Users Group        --       http://www.phillylinux.org
Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce
General Discussion  --   http://lists.netisland.net/mailman/listinfo/plug