-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there!

This is my first posting to this mailing list, so plz don't flame me
- - ok ;-)
Please send your responses to: [EMAIL PROTECTED]
Rows will probably wrap. 

I am trying to use the Net::SSH::Perl module with Perl 5.6.1 on a
i686 RH 6.2 Linux box.

My code is quite basic so far (mostly from Net::SSH:Perl manpage
since I want to start to be able to establish a connection before I
develop any further):

#!/usr/bin/perl -w
use Net::SSH::Perl;
use strict;

my
($ssh,$host,$user,$pass,$stdout,$stderr,$exit,$cmd,$port,$back,$prot);

$host = "$ARGV[0]";
$port = "$ARGV[1]";
$user = "$ARGV[2]";
$pass = "$ARGV[3]";

$ssh = Net::SSH::Perl->new("$host", port=>($port), debug=>'true',
protocol=>'2,1', interactive=>'true');
$ssh->login($user, $pass);
$back = $ssh->incoming_data;

print "\n\nIncoming:  $back\n\n";

($stdout, $stderr, $exit) = $ssh->cmd($cmd);


This code seems to work so far that a connection is made...

box: Reading configuration data /home/my_username/.ssh/config
box: Reading configuration data /etc/ssh_config
box: Allocated local port 1023.
box: Connecting to box, port 22.
box: Remote protocol version 1.99, remote software version 2.3.0 SSH
Secure Shell (non-commercial)

However, I'm only allowing SSH2 on my SSH server and this is where my
problem begins.
If I'm using protocol=>'1' I don't get any errors from Perl, but my
connection is closed (as should be).
When I'm trying to use SSH2 I get the following error:

Can't locate loadable object for module Math::Pari in @INC (@INC
contains:
/usr/local/ActivePerl-5.6/lib/5.6.1/i686-linux-thread-multi
/usr/local/ActivePerl-5.6/lib/5.6.1
/usr/local/ActivePerl-5.6/lib/site_perl/5.6.1/i686-linux-thread-multi
/usr/local/ActivePerl-5.6/lib/site_perl/5.6.1
/usr/local/ActivePerl-5.6/lib/site_perl .)
at
/usr/local/ActivePerl-5.6/lib/site_perl/5.6.1/Net/SSH/Perl/Util/SSH2MP
.pm line 6


I do have Math::Pari installed
bash# locate Pari.pm
/usr/local/ActivePerl-5.6/lib/5.6.1/Math/Pari.pm

However, I looked into Pari.pm and saw this on row 653 & 654:
require Exporter;
require DynaLoader;

So I checked for those:
bash# locate Exporter DynaLoader
/usr/local/ActivePerl-5.6/html/lib/Exporter
/usr/local/ActivePerl-5.6/html/lib/Exporter/Heavy.html
/usr/local/ActivePerl-5.6/html/lib/Exporter.html
/usr/local/ActivePerl-5.6/lib/5.6.1/Exporter
/usr/local/ActivePerl-5.6/lib/5.6.1/Exporter/Heavy.pm
/usr/local/ActivePerl-5.6/lib/5.6.1/Exporter.pm
/usr/man/man3/Exporter.3
/usr/man/man3/Exporter::Heavy.3
/usr/local/ActivePerl-5.6/html/lib/DynaLoader.html
/usr/local/ActivePerl-5.6/lib/5.6.1/i686-linux-thread-multi/DynaLoader
.pm
/usr/local/ActivePerl-5.6/lib/5.6.1/i686-linux-thread-multi/auto/DynaL
oader
/usr/local/ActivePerl-5.6/lib/5.6.1/i686-linux-thread-multi/auto/DynaL
oader/DynaLoader.a
/usr/local/ActivePerl-5.6/lib/5.6.1/i686-linux-thread-multi/auto/DynaL
oader/autosplit.ix
/usr/local/ActivePerl-5.6/lib/5.6.1/i686-linux-thread-multi/auto/DynaL
oader/dl_expandspec.al
/usr/local/ActivePerl-5.6/lib/5.6.1/i686-linux-thread-multi/auto/DynaL
oader/dl_find_symbol_anywhere.al
/usr/local/ActivePerl-5.6/lib/5.6.1/i686-linux-thread-multi/auto/DynaL
oader/dl_findfile.al
/usr/local/ActivePerl-5.6/lib/5.6.1/i686-linux-thread-multi/auto/DynaL
oader/extralibs.ld
/usr/man/man3/DynaLoader.3


Could any of you plz help me out...  I really need to get this
working...   ;-)
Thnx!!


Patrik Birgersson

# Security is not a product - it is a process #

-----BEGIN PGP SIGNATURE-----
Version: PGP 7.0

iQA/AwUBO6Is8B+A7LF3JdzkEQKRVACghLwXF6+iaMu13Dyr18Y/avL2vPMAoKj2
XzjHjNQ6MVqhGkhk1QunVDia
=vldj
-----END PGP SIGNATURE-----


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to