Re: [Hampshire] Net-SSH-Perl vs Net::SSH, Expect.pm and Tcl.…

Top Page

Reply to this message
Author: Jim Kissel
Date:  
To: hampshire
Subject: Re: [Hampshire] Net-SSH-Perl vs Net::SSH, Expect.pm and Tcl.pm


Damian Brasher wrote:
> I'm evaluating these Perl modules, I think there are some Perl mongers
> amongst here :)
>
> Net::SSH::Perl (inc. Net::SFTP)
> Net::SSH
> Expect.pm
> Tcl.pm


I've used Net::SSH and Expect
>
> Does anyone have experience using these modules and can relay pro's and
> cons of each from experience? As I only really need to log into an SSH
> session, copy files and execute commands on remote machines I feel like
> Tcl.pm and Expect.pm are overkill, but perhaps I have missed crucial
> flexibility advantages? Net::SSH is reliant on native system SSH calls
> where as Net::SSH::Perl is a Perl SSH implementation. I'm worried I may
> loose some security functionality features with Net::SSH::Perl.


Other than how you store/pass you plain text password to you perl
script, SSH should provide full functionality.
>
> Another factor is to check whether these packages are installed as default
> on the average Linux system then to make the decision to either statically
> or dynamically link to them. I have experience of CPAN but want to make my
> installation as self contained as possible.


None are commonly installed, but it relatively easy to install even from
source provided you have a admin login
>
> Any advice or thoughts at this stage will be helpful, TIA.


All of the Net:: modules are similar in interface.

my $connect = Net::SSH->new($Host);
$connect->login($user, $password);

>
> Also, can anyone signpost me to an appropriate or favorite Perl Mailing
> List for when I inevitably get stuck on more advanced Perl problems.
>

Try hampshire@??? ;-)

> Damian
>


--
People choose Microsoft Windows for their PC in the same manner
that the citizens of Soviet Russia elected the General Secretary
of the Communist Party during the cold war.