[Israel.pm] Automate scp

Ephraim Dan E.Dan at F5.com
Mon Feb 4 00:45:12 PST 2008


The easiest way is to swap ssh keys so no password is required.

If that's not possible, you'll need the "Expect" module to handle the
interactive session.

--edan


> -----Original Message-----
> From: perl-bounces at perl.org.il [mailto:perl-bounces at perl.org.il] On
> Behalf Of Svetlana Degtiar
> Sent: Monday, February 04, 2008 10:41
> To: perl at perl.org.il
> Subject: [Israel.pm] Automate scp
> 
> Hi,
> 
> I want to automate scp. I had the password and the scp
> (/Users/xyz/test.txt
> root at 192.168.11.95:/tmp) command in a file (Suppose).
> 
> I am able to execute the scp command successfully but I am not able to
> enter
> password automatically.
> 
> Can any one suggest how to do it or any other way in Perl or shell to
> do
> that.
> 
> 
> 
> Thanks,
> 
> Sveta.
> 
> 
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://perl.org.il/mailman/listinfo/perl



More information about the Perl mailing list