Operating System - HP-UX
1833770 Members
2361 Online
110063 Solutions
New Discussion

Perl script to drive sftp2

 
Mark Fenton
Esteemed Contributor

Perl script to drive sftp2

I am a total novice as regards perl, but need to set up a script to automate sftp transfers. The script should send passphrase and passwords in the same way that an interactive session would do.
I did a bunch of poking around the forum, but couldn't find what I'm looking for. Any assistance would be GREATLY appreciated.

Mark
2 REPLIES 2
harry d brown jr
Honored Contributor

Re: Perl script to drive sftp2

Mark,

http://rhumba.pair.com/ben/perl/net-ssh/

You need to add the "modules" to your perl.


live free or die
harry
Live Free or Die
Mark Fenton
Esteemed Contributor

Re: Perl script to drive sftp2

Thanks, Harry

I already had gotten the NET::SSH mod from CPAN, but I hadn't gotten to the documentation on it yet, and now realize that I'll also need NET::SFTP, and maybe a CRYPT:: mod or two as well.

Do you know if these will work under Win2K versions of Perl? For political reasons, I have to use a winblows box to run all this...

Script examples appreciated!

Mark