Re: [Ssh-sftp-perl-users] ***SPAM*** Re: problems with net-ssh-perl ... pleasetake a look.
Brought to you by:
dbrobins
|
From: Glenn B. <gl...@ex...> - 2006-11-13 21:59:51
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Chris,<br>
<br>
I recall I had a similar problem. The solution was to install a
certain perl math library. I'm not sure exactly which one it was, but
it should be one or more of these:<br>
<br>
Math-BigInt-GMP<br>
Math-GMP<br>
Math-BigInt<br>
Math-Pari<br>
<br>
and maybe <br>
<br>
Crypt-RSA.<br>
Crypt-Primes<br>
<br>
<br>
Good luck,<br>
Glenn<br>
<br>
<br>
<br>
<br>
Chris Fernandez wrote:
<blockquote cite="mid...@vo..." type="cite">
<pre wrap="">yes of course I did that.. trust me I spend all Sunday more than 8 hours
researching.. some people complains about been slow others about having
the same issue I have
some point is related to dependent modules.. but nobody really gives a
straight answer to anyone.
basically it gets stuck on this part:
perforceb: Reading configuration data /root/.ssh/config
perforceb: Reading configuration data /etc/ssh_config
perforceb: Allocated local port 1023.
perforceb: Connecting to perforcea.mydomain.example, port 22.
perforceb: Remote version string: SSH-2.0-OpenSSH_4.4
perforceb: Remote protocol version 2.0, remote software version OpenSSH_4.4
perforceb: Net::SSH::Perl Version 1.30, protocol version 2.0.
perforceb: No compat match: OpenSSH_4.4.
perforceb: Connection established.
perforceb: Sent key-exchange init (KEXINIT), wait response.
perforceb: Algorithms, c->s: 3des-cbc hmac-sha1 none
perforceb: Algorithms, s->c: 3des-cbc hmac-sha1 none
perforceb: Entering Diffie-Hellman Group 1 key exchange.
perforceb: Sent DH public key, waiting for reply.
perforceb: Received host key, type 'ssh-dss'.
perforceb: Host 'perforcea.mydomain.myexample' is known and matches the
host key.
perforceb: Computing shared secret key.
perforceb: Verifying server signature.
perforceb: Waiting for NEWKEYS message.
perforceb: Enabling incoming encryption/MAC/compression.
perforceb: Send NEWKEYS, enable outgoing encryption/MAC/compression.
perforceb: Sending request for user-authentication service.
perforceb: Service accepted: ssh-userauth.
perforceb: Trying empty user-authentication request.
perforceb: Authentication methods that can continue:
publickey,keyboard-interactive.
perforceb: Next method to try is publickey.
perforceb: Trying pubkey authentication with key file '/root/.ssh/id_dsa'
and sits there for 5 m till I get a return of "remote host close connection"
then when it works it just works..
so is on and off.. is weird...
here is some code
my $ssh = Net::SSH::Perl->new("$HOSTA", debug => 1); # DEBUG MODE
# my $ssh = Net::SSH::Perl->new("$HOSTA");
$ssh->login;
my($out, $err, $exit) = $ssh->cmd("ls -al");
print $err;
print $out;
print $exit;
open (LOG, ">>$LOGFILE") || die "Error login to file: $!";
print LOG "$err\n";
print LOG "$out\n";
print LOG "$exit";
close(LOG);
Kirkland, Bruce wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I just got your message today. I'm fairly new at this so I'm probably
not much help. I have been testing and found it to be very slow. The
only clues I have is to use something like the following to get a
trace similar to ssh -v
#!/usr/local/bin/perl -w
# test the perl modules
use Net::SSH::Perl;
# login info
$user="real user goes here";
$pass="real pw goes here";
$host="real serer goes here ";
# for debugging, this will give you something like ssh -v
my $ssh = Net::SSH::Perl->new($host, debug => 1);
$ssh->login($user, $pass) ;
($stdout, $stderr, $exit) = $ssh->cmd("touch /tmp/$host-test");
if ( $stderr )
{
print "error $stderr" ;
exit 1;
}
exit;
------------------------------------------------------------------------
*From:* <a class="moz-txt-link-abbreviated" href="mailto:ssh...@li...">ssh...@li...</a>
[<a class="moz-txt-link-freetext" href="mailto:ssh...@li...">mailto:ssh...@li...</a>] *On Behalf
Of *Frank Carreiro
*Sent:* Monday, November 13, 2006 3:11 PM
*To:* <a class="moz-txt-link-abbreviated" href="mailto:ssh...@li...">ssh...@li...</a>; Chris Fernandez
*Subject:* Re: [Ssh-sftp-perl-users] problems with net-ssh-perl ...
pleasetake a look.
I guess not. I've sent a few messages and haven't heard back from
anyone. I've been wondering if there is a problem with sourceforge
forums or just a lack of interest :-)
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">On Mon, Nov 13, 2006 at 1:06 pm, in message
</pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap=""><a class="moz-txt-link-rfc2396E" href="mailto:455...@vo..."><455...@vo...></a>, Chris Fernandez
<a class="moz-txt-link-rfc2396E" href="mailto:cfe...@vo..."><cfe...@vo...></a> wrote:
mobody in this list? :-(
Chris Fernandez wrote:
</pre>
<blockquote type="cite">
<pre wrap="">sorry, I forgot to add that I get as and exit when it wont work if I
wait to the end.
Connection closed by remote host. at
/usr/lib64/perl5/vendor_perl/5.8.8/Net/SSH/Perl/AuthMgr.pm line 142
I think is waiting for me to do something and times me out..
Chris Fernandez wrote:
</pre>
<blockquote type="cite">
<pre wrap="">my system is Gentoo GNU/Linux
perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
osname=linux, osvers=2.6.16-gentoo-r13, archname=x86_64-linux
uname='linux vmware 2.6.16-gentoo-r13 #2 smp wed jul 19 10:44:27 edt
2006 x86_64 intel(r) xeon(tm) cpu 2.80ghz gnulinux '
</pre>
</blockquote>
<pre wrap="">! ;>&# 160; config_args='-des -Darchname=x86_64-linux
</pre>
</blockquote>
<pre wrap="">-Dcccdlflags=-fPIC
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">-Dccdlflags=-rdynamic -Dcc=x86_64-pc-linux-gnu-gcc -Dprefix=/usr
-Dvendorprefix=/usr -Dsiteprefix=/usr -Dlocincpth=
-Doptimize=-march=nocona -O2 -fomit-frame-pointer -pipe -Duselargefiles
-Dd_semctl_semun -Dscriptdir=/usr/bin -Dman1dir=/usr/share/man/man1
-Dman3dir=/usr/share/man/man3 -Dinstallman1dir=/usr/share/man/man1
-Dinstallman3dir=/usr/share/man/man3 -Dman1ext=1 -Dman3ext=3pm
-Dinc_version_list=5.8.0 5.8.0/x86_64-linux 5.8.2 5.8.2/x86_64-linux
5.8.4 5.8.4/x86_64-linux 5.8.5 5.8.5/x86_64-linux 5.8.6
5.8.6/x86_64-linux 5.8.7 5.8.7/x86_64-linux -Dcf_by=Gentoo -Ud_csh
-Dusenm -Ui_ndbm -Ui_gdbm -Di_db
-Dusrinc=/usr/include/gentoo-multilib/amd64 -Dlibpth=/! usr/loc
</pre>
</blockquote>
</blockquote>
<pre wrap="">al/lib64
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">/lib64 /usr/lib64'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=define use64bitall=define uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='x86_64-pc-linux-gnu-gcc', ccflags ='-fno-strict-aliasing -pipe
-Wdeclaration-after-statement -D_LARGEFILE_SOURCE
</pre>
</blockquote>
</blockquote>
<pre wrap="">-D_FILE_OFFSET_BITS=64
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">-I/usr/include/gdbm',
optimize='-march=nocona -O2 -fomit-frame-pointer -pipe&#! 39;, ;
cppflags='-fno-strict-aliasing -pipe -Wdeclaration-after-statement
-I/usr/include/gdbm'
ccversion='', gccversion='4.1.1 (Gentoo 4.1.1)', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='x86_64-pc-linux-gnu-gcc', ldflags =' -L! /usr/lo cal/lib64'
libpth=/usr/local/lib64 /lib64 /usr/lib64
libs=-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.4.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.4'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib64'
Characteristics of this binary (from libperl):
Compile-time options: PERL_MALLOC_WRAP USE_64_BIT_ALL USE_64_BIT_INT
&! #160;&# 160; USE_LARGE_FILES USE_PERLIO
Built under linux
Compiled at Sep 21 2006 10:23:54
@INC:
/etc/perl
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux
/usr/lib64/perl5/vendor_perl/5.8.8
/usr/lib64/perl5/vendor_perl
/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux
/usr/lib64/perl5/site_perl/5.8.8
/usr/lib64/perl5/site_perl
/usr/lib64/perl5/5.8.8/x86_64-linux
/usr/lib64/perl5/5.8.8
/usr/local/lib/site_perl
</pre>
</blockquote>
<pre wrap="">&! gt; The issue that I am having is very weird... my script will run
</pre>
</blockquote>
<pre wrap="">only
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">sometimes... the majority of the times looks like it just *hangs*
</pre>
</blockquote>
</blockquote>
<pre wrap="">and is
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">very slow..
once in a while mostly when I have not try in 1m or more.. then it runs
the first time I run it.. to go again into the *weird* status that will
only run once in a while...
why?
anyone had the same issue?
work around?
bug?
I will post portion of my code if needed but seen that it does works
sometimes makes me think it must be something else.
help!!!
Thanks for your help in advance.
Chris
</pre>
</blockquote>
</blockquote>
<pre wrap="">-------------------------------------------------------------------------
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">Using Tomcat but need to do more? Need to support web services,
</pre>
</blockquote>
</blockquote>
<pre wrap="">security?
&g! t;> Get stuff done quickly with pre-integrated technology to make
your job easier
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">Download IBM WebSphere Application Server v.1.0.1 based on Apache
</pre>
</blockquote>
</blockquote>
<pre wrap="">Geronimo
</pre>
<pre wrap=""><a class="moz-txt-link-freetext" href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642</a>
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">_______________________________________________
Ssh-sftp-perl-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Ssh...@li...">Ssh...@li...</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users">https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users</a>
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<pre wrap="">-------------------------------------------------------------------------
</pre>
<blockquote type="cite">
<pre wrap="">Using Tomcat but need to do more? Need to support web services,
</pre>
</blockquote>
<pre wrap="">security?
</pre>
<blockquote type="cite">
<pre wrap="">Get stuff done quickly with pre-integrated technology to make your
</pre>
</blockquote>
<pre wrap="">job easier
</pre>
<blockquote type="cite">
<pre wrap="">Download IBM WebSphere Application Server v.1.0.1 based on Apache
</pre>
</blockquote>
<pre wrap="">Geronimo
</pre>
<blockquote type="cite">
<pre wrap=""><a class="moz-txt-link-freetext" href="http://sel.as-us.falkag.net/se">http://sel.as-us.falkag.net/se</a>! l?c
</pre>
</blockquote>
<pre wrap="">md=lnk&kid=120709&bid=263057&dat=121642
</pre>
<blockquote type="cite">
<pre wrap="">_______________________________________________
Ssh-sftp-perl-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Ssh...@li...">Ssh...@li...</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users">https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users</a>
</pre>
</blockquote>
<pre wrap="">
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
<a class="moz-txt-link-freetext" href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642</a>
_______________________________________________
Ssh-sftp-perl-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Ssh...@li...">Ssh...@li...</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users">https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users</a>
------------------------------------------------------------------------
NOTICE: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution is
prohibited. If you are not the intended recipient, please contact the
sender by reply email and destroy all copies of the original message.
*****************************************************************
This message has originated from R. L. Polk & Co.,
26955 Northwestern Highway, Southfield, MI 48033.
R. L. Polk & Co. sends various types of email
communications. If this email message concerns the
potential licensing of a Polk product or service, and
you do not wish to receive further emails regarding Polk
products, forward this email to <a class="moz-txt-link-abbreviated" href="mailto:Do_...@po...">Do_...@po...</a>
with the word "remove" in the subject line.
The email and any files transmitted with it are confidential
and intended solely for the individual or entity to whom they
are addressed.
If you have received this email in error, please delete this
message and notify the Polk System Administrator at
<a class="moz-txt-link-abbreviated" href="mailto:pos...@po...">pos...@po...</a>.
*****************************************************************
</pre>
</blockquote>
<pre wrap=""><!---->
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
<a class="moz-txt-link-freetext" href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642</a>
_______________________________________________
Ssh-sftp-perl-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Ssh...@li...">Ssh...@li...</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users">https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users</a>
</pre>
</blockquote>
<br>
</body>
</html>
|