Hi Priyal,

On Mon, 1 Dec 2014 09:29:44 +0000
Priyal Jain <jpri...@juniper.net> wrote:

> Hi,
> 
> For establishing ssh session between client and server, which is better
> method: 1. Net::SSH2 :
> http://search.cpan.org/~rkitover/Net-SSH2-0.53/lib/Net/SSH2.pm 2. Expect :
> http://search.cpan.org/~rgiersig/Expect-1.15/Expect.pod
> 
> What are the advantages of using Net::SSH2 over Expect??
> 

I believe in general, using an SSH module (either Net-SSH2 or a different one -
see http://perl-begin.org/uses/remote-login-and-commands/#ssh ) is better than
trying to wrap the command line client using Expect, because it works at the
protocol level.

Regards,

        Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Rethinking CPAN - http://shlom.in/rethinking-cpan

 <Su-Shee>  rindolf: yeah because Perl’s crypt() is TOTALLY different from all
            the other crypt()s. ;)
 <rindolf>  Su-Shee: crypts are like snowflakes - no one alike.
  * rindolf has a huge and comprehensive collection of crypts on his disk.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to