ssh-sftp-perl-users Mailing List for Net::SSH and Net::SFTP - Perl modules (Page 18)
Brought to you by:
dbrobins
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(6) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(4) |
Feb
(15) |
Mar
(13) |
Apr
(8) |
May
(5) |
Jun
(21) |
Jul
(4) |
Aug
(9) |
Sep
(11) |
Oct
(14) |
Nov
(15) |
Dec
(24) |
2005 |
Jan
(10) |
Feb
(20) |
Mar
(16) |
Apr
(10) |
May
(12) |
Jun
(16) |
Jul
(18) |
Aug
(21) |
Sep
(11) |
Oct
(19) |
Nov
(16) |
Dec
(9) |
2006 |
Jan
(17) |
Feb
(32) |
Mar
(60) |
Apr
(21) |
May
(24) |
Jun
(1) |
Jul
(6) |
Aug
(18) |
Sep
(4) |
Oct
(9) |
Nov
(31) |
Dec
(10) |
2007 |
Jan
(8) |
Feb
(11) |
Mar
(3) |
Apr
(7) |
May
(4) |
Jun
(6) |
Jul
(7) |
Aug
(3) |
Sep
(2) |
Oct
(5) |
Nov
(5) |
Dec
(5) |
2008 |
Jan
(12) |
Feb
(5) |
Mar
(7) |
Apr
(4) |
May
(37) |
Jun
(9) |
Jul
(24) |
Aug
(5) |
Sep
(2) |
Oct
(7) |
Nov
(6) |
Dec
(7) |
2009 |
Jan
(18) |
Feb
(9) |
Mar
(14) |
Apr
(14) |
May
(1) |
Jun
(14) |
Jul
(4) |
Aug
(6) |
Sep
(4) |
Oct
(12) |
Nov
(4) |
Dec
|
2010 |
Jan
|
Feb
(3) |
Mar
|
Apr
(1) |
May
(4) |
Jun
|
Jul
(6) |
Aug
(6) |
Sep
|
Oct
(7) |
Nov
(2) |
Dec
(5) |
2011 |
Jan
(2) |
Feb
|
Mar
|
Apr
(1) |
May
(8) |
Jun
(1) |
Jul
|
Aug
(2) |
Sep
|
Oct
(4) |
Nov
(9) |
Dec
(7) |
2012 |
Jan
(1) |
Feb
(19) |
Mar
(4) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
(2) |
Apr
(2) |
May
|
Jun
(5) |
Jul
(3) |
Aug
(1) |
Sep
|
Oct
|
Nov
(6) |
Dec
|
2014 |
Jan
(7) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: DonKiShoot <don...@wa...> - 2006-11-22 14:17:04
|
Hello all, I'm trying to send some commands to my switch HP Procurve 2650 in ssh2 with Net::SSH::Perl with user 'operator' and pubkey authentification. It appears that i have a problem when starting to send command but authentification seems good. This is sample of my perl script and next debug trace with error i receive: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ foreach my $addr (keys %Switch) { # print "$addr, $Switch{$addr}{'login'} :\n"; my $ssh = Net::SSH::Perl->new($addr,'debug' => 1, 'use_pty' => 1, 'protocol' => 2, 'interactive' => 0, options => ["RhostsAuthentication no"]); #$ssh->register_handler("stdout", sub { # my($channel, $buffer) = @_; # print "I received this: ", $buffer->bytes; # }); $ssh->login($Switch{$addr}{'login'}); my($stdout, $stderr, $exit) = $ssh->cmd("\n"); print "$stdout $stderr $exit\n"; ($stdout, $stderr, $exit) = $ssh->cmd("ping $ip"); print "$stdout $stderr $exit\n"; } +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ srv78supervision: Reading configuration data /root/.ssh/config srv78supervision: Reading configuration data /etc/ssh_config srv78supervision: Allocated local port 1023. srv78supervision: Connecting to 10.1.2.22, port 22. srv78supervision: Remote version string: SSH-2.0-OpenSSH_3.7.1p2 srv78supervision: Remote protocol version 2.0, remote software version OpenSSH_3.7.1p2 srv78supervision: Net::SSH::Perl Version 1.30, protocol version 2.0. srv78supervision: No compat match: OpenSSH_3.7.1p2. srv78supervision: Connection established. srv78supervision: Sent key-exchange init (KEXINIT), wait response. srv78supervision: Algorithms, c->s: 3des-cbc hmac-sha1 none srv78supervision: Algorithms, s->c: 3des-cbc hmac-sha1 none srv78supervision: Entering Diffie-Hellman Group 1 key exchange. srv78supervision: Sent DH public key, waiting for reply. srv78supervision: Received host key, type 'ssh-rsa'. srv78supervision: Host '10.1.2.22' is known and matches the host key. srv78supervision: Computing shared secret key. srv78supervision: Verifying server signature. srv78supervision: Waiting for NEWKEYS message. srv78supervision: Enabling incoming encryption/MAC/compression. srv78supervision: Send NEWKEYS, enable outgoing encryption/MAC/compression. srv78supervision: Sending request for user-authentication service. srv78supervision: Service accepted: ssh-userauth. srv78supervision: Trying empty user-authentication request. srv78supervision: Authentication methods that can continue: publickey,password. srv78supervision: Next method to try is publickey. srv78supervision: Trying pubkey authentication with key file '/root/.ssh/id_dsa' srv78supervision: Login completed, opening dummy shell channel. srv78supervision: channel 0: new [client-session] srv78supervision: Requesting channel_open for channel 0. srv78supervision: channel 0: open confirm rwindow 0 rmax 32768 srv78supervision: Got channel open confirmation, requesting shell. srv78supervision: Requesting service shell on channel 0. srv78supervision: channel 1: new [client-session] srv78supervision: Requesting channel_open for channel 1. srv78supervision: Entering interactive session. /*Received disconnect message: Device does not support shell request not preceded by pty request. at /usr/lib/perl5/vendor_perl/5.8.8/Net/SSH/Perl/SSH2.pm line 284*/ What can i do to resolve this problem ? Thx all |
From: Bryan B. <br...@bu...> - 2006-11-17 20:52:31
|
> No, it does not help (although I did at one time consider using something > similar). > > Of course The Conditions That Prevail at my work place and the > specifications of what I am attempting may be conflicting, and I have very > little leeway in changing those conditions. > > - My workplace's security policy requires secure transmission of data > between Servers My Department Is Responsible For to Servers My Department > Is > Not Responsible For. For secure communications ssh and related > technologies > are used, with a RSA-Public-Private key shared among the various > Departments. Separate SSH User Accounts are not to be used since they are > too insecure (according to our Security Department) and maintenance of > said > accounts are prone to errors. > - My Perl script is to be a Monolithic Script that can be incorporated > into > other applications. It is to use the same ssh and related technologies to > communicate between the Servers My Department Is Responsible For to > Servers > My Department Is Not Responsible For; however, the users of this script > are > to not even know anything of the secure transfers of data between the > several servers. > > Thus my request to find some way of creating and using > Net::SSH::Perl/Net:SFTP objects and somehow programmatically specifying to > the created object the RSA-Public Passphrase WITHOUT having the object > prompt for it or having this script prompt a user for a Passphrase they > are > not to be aware of. > > Frustrating... > > -------------------------------------------------- > James R. Swenson > Information Technology Services > The Pennsylvania State University > jr...@ps..., 814.863.1348 > > Sounds pretty confusing, but i'll take one more stab at it. You have password protected ssh keys you use between departments, correct? So you need to use key authentication, with a password, with no prompting, how about this: -- snip --> use Net::SSH2; my $ssh2 = Net::SSH2->new(); $ssh2->connect("somehost") or die; if ($ssh2->auth_publickey("user", "/priv/key", "/pub/key", "passphrase")) { my $chan = $ssh2->channel(); my $sftp = $ssh2->sftp; my $fh = $sftp->open('/etc/passwd') or die; print $_ while <$fh>; } <-- snip -- Which is straight from the Net::SSH2 man page. I was not able to test it because my Net::SSH2 install is not working at the moment. But it "should" do the trick. It does not seem that Net::SSH::Perl supports password protected private keys. If that doesnt work, maybe you should use something like Expect and write your own stuff around the ssh command line tool. There are many programs out there, including one that I wote: Rover - http://www.sourceforge.net/projects/rover Good luck. Bryan http://www.sourceforge.net/projects/rover |
From: Frank C. <car...@ld...> - 2006-11-16 21:10:02
|
All, here is a sample bit of code I've written in testing how to ssh from one server to a remote system. It's not the cleanest bit of code I've written however it works. Basically I was desperate in finding a solution in grabbing /etc/shadow and /etc/sudoers for our auditing department (long story). Using the poll and read methods for some reason wasn't working properly. I've had other perl coders here check my work and no soap. They were getting the same results I'm experiencing. I left those sections I was messing around with so you can see how I was trying make it work. This bit of sample code only shows the basics of connecting, running commands and printing the results to the screen. Usually I grab the results to a filehandle locally opened. BTW, the first attempt at reading /etc/shadow doesn't seem to provide any results in the channel however it seems once I've sent the password to sudo I'm able to capture it on the second attempt. I think this means we're somehow missing the output on the first try and since we're still connected and sudo has been satisfied we can capture it on the second attempt. If anyone has any idea how to use the poll method I would appreciate a hint or two. I need to setup a process that watches STDERR and run's a subroutine if STDERR traffic is detected (similar to register_handler found in the old module). I've invested a great deal of time reading through perldoc and various online references. So far nothing seems to be helping me figure this out. I've lightly tested the below code. Use at your own risk. Enjoy! P.S. I don't see the ssh-sftp-perl-users forums webpage updating over the last couple of months. The last update was September 29th. -------- #!/usr/bin/perl use Net::SSH2; use Term::InKey; #use diagnostics; use strict; use warnings; my $server = server_name_here; my $login= login_name_here; my $timeout = 100; my ($password,$confirmpasswd); my ($code,$errname,$errstr,$output); my $debug = 0; &Clear; print Type account password for $login: ; $password = &ReadPassword; print Type again to confirm password: ; $confirmpasswd = &ReadPassword; die \n\n ** Exiting ... Need a password \n\n unless ($password eq $confirmpasswd); # Create the ssh2 object my $ssh2 = Net::SSH2->new(); # Create my STDERR trigger - this isn't working yet! # my $self = shift; # my @poll = ({ handle => $self, events => 'ext' }); # my $subroutine = $ssh2->poll($timeout, \@poll); # connect to remote server $ssh2->connect($server) or die ** Failed to connect via Net::SSH2: $!\n; print ** Connect to server $server successful\n\n; # Authenticate to remote system. Works with SLESS9 (PasswordAuthentication no) $ssh2->auth_keyboard($login,$password) or die \n\n** Exiting ... Failed to login to server $server\n\n; # Authenticate to remote system. Works with SLES8 (PasswordAuthentication yes) # $ssh2->auth_password($login,$password) or die \n\n** Exiting ... Failed to login to server $server\n\n; # Open a channel and create a shell first. my $chan = $ssh2->channel(); $chan->shell(); # Execute a command print \n** Entering the Execute Command routine \n\n if $debug =~ 1; my $cmd = 'ls -l /'; $chan = $ssh2->channel(); $chan->exec($cmd); print $chan sudo cat /etc/shadow \n; print $chan $password . \n; print \n** Exiting the Execute Command routine \n\n if $debug =~ 1; # Read the channel - this isn't working yet! # print \n** Entering the Read routine \n\n if $debug =~ 1; # my $buffer; # $chan->read($buffer, 1024, '1'); # print \n** Exiting the Read routine \n\n if $debug =~ 1; # Print the results. print \n** Entering the print routine\n\n if $debug =~ 1; print \n** Command results\n; print $_ while <$chan>; print \n** Exiting the print routine\n\n if $debug =~ 1; # STDERR routine print \n\n** Entering STDERR routine \n\n if $debug =~ 1; $chan = $ssh2->channel(); $chan->exec('sudo cat /etc/shadow'); print $chan $password . \n; print \n** /etc/shadow results\n; print $_ while <$chan>; print \n\n** Exiting STDERR routine \n\n if $debug =~ 1; $chan->close; ---------------------------------------------------------------------- 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. |
From: Swenson, J. <jr...@ps...> - 2006-11-16 20:10:36
|
Hello. I am attempting to create a script that uses Net::SSH::Perl and Net::SFTP to send a file from one server to another server and to issue remote commands on the other server to operate on said file. However, I am having problems in establishing connections to the remote servers using the facilities of Net::SSH::Perl and Net::SFTP. These are the conditions that I am working under: 1) There will be no accounts set up on the remote servers using SSH-enabled usernames or passwords. 2) Passphrase-based RSA Authentication will be used. 3) Null passphrases will not be used. 4) The resulting script is NOT to issue prompts to the user for information Such as the Passphrase. This requirement is so this script can be run as non-interactive batch job or as code imbedded in a web server. 5) Any prompts for Passphrases (if any) must be handled within the script itself. I have not seen anything in the documentation for Net::SSH::Perl and net::SFTP to allow me to specify to a SSH or SFTP object the RSA Passphrase to allow the script to make the connection to the remote servers. I have also looked at the documentation for the ssh and sftp commands and have been unable to find the parameters that would allow me to specify on the command line the Passphrase or the location of the Passphrase such that Ssh/sftp connections can be made with the remote servers without prompting for the Passphrase. Although I am researching an alternative method for doing what I want using other Perl modules, I would prefer to use Net::SSH::Perl/Net::SFTP for this script since it gives me better control over operations. Can you direct me to any sources where I can get my questions answered? Thank you for your time. -------------------------------------------------- James R. Swenson Information Technology Services The Pennsylvania State University jr...@ps..., 814.863.1348 |
From: Frank C. <car...@ld...> - 2006-11-15 14:53:31
|
I believe Math::Pari solves this problem. I ran into this myself last year when I was using this module. Since then I've moved to Net::SSH2 and found it's MUCH faster and easier to implement. What used to take a few hours with Net::SSH::Perl now takes a few minutes. We've been using this to grab /etc/sudoers and other information across the network. Net::SSH::Perl would run anywhere from 2-4 hours depending on how many servers we were auditing. Now with the new module is takes only a few minutes. We're averaging about 400 servers we're hitting with a run time around 4.5 minutes. Manually it would have taken us around 4 days :-) Very impressive code. I'm cleaning up my sample code and hoping to submit it to the group. We had a lot or problems reading STDERR. For some reason the methods read and poll haven't been working for us. I'm hoping to dig a bit and figure it out. I've spent days going through perldoc and source code to figure this one out. When using POLL I usually get a message that I can't use a hard reference. Very weird. >>> On Mon, Nov 13, 2006 at 2:32 pm, in message <6DF...@SF...>, Kirkland, Bruce <Bru...@po...> wrote: 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: ssh...@li... [mailto:ssh...@li...] On Behalf Of Frank Carreiro Sent: Monday, November 13, 2006 3:11 PM To: ssh...@li...; 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 :-) >>> On Mon, Nov 13, 2006 at 1:06 pm, in message <455...@vo...>, Chris Fernandez <cfe...@vo...> wrote: mobody in this list? :-( Chris Fernandez wrote: > 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: > >> 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 ' >! ;>&# 160; config_args='-des -Darchname=x86_64-linux -Dcccdlflags=-fPIC >> -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 al/lib64 >> /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 -D_FILE_OFFSET_BITS=64 >> -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.88/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 >> >> >> >&! gt; The issue that I am having is very weird... my script will run only >> sometimes... the majority of the times looks like it just *hangs* and is >> 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 >> >> >> ------------------------------------------------------------------------- >> Using Tomcat but need to do more? Need to support web services, security? &g! t;> 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 >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> Ssh-sftp-perl-users mailing list >> Ssh...@li... >> https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users >> >> >> > > > ------------------------------------------------------------------------- > 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 > http://sel.as-us.falkag.net/se! l?c md=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Ssh-sftp-perl-users mailing list > Ssh...@li... > https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users > > ------------------------------------------------------------------------- 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 http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Ssh-sftp-perl-users mailing list Ssh...@li... https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users 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. ---------------------------------------------------------------------- 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. |
From: Chris F. <cfe...@vo...> - 2006-11-14 01:59:02
|
Hi, thanks for your tip.. unfurtunally I have check and I have both installed... the bigint.. and Pari.. even like that I have merged it again to the system to make sure.. regenerating /etc/ld.so.cache... >>> perl-core/Math-BigInt-1.77-r1 merged. >>> Recording perl-core/Math-BigInt in "world" favorites file... and Regenerating /etc/ld.so.cache... >>> dev-perl/math-pari-2.010709 merged. im out of ideas should I manually install them myself? this is a 64bit server those it makes any difference for the math? Im going to check also the library ssh2 you suggest.. thanks. Ross Kramer wrote: > Try installing Math::BigInt::GMP or Math::Pari. Net::SSH::Perl is using > it's own internal stuff to compute the math, and that is really slow. > Sometimes it's slow enough to cause the server to time you out. > > Check out this reference: > > http://www.forbiddenweb.org/topic/127735/index.html > > Hope that helps... > > On Mon, 2006-11-13 at 16:48 -0600, Chris Fernandez wrote: > >> 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: >> >>> 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:* ssh...@li... >>> [mailto:ssh...@li...] *On Behalf >>> Of *Frank Carreiro >>> *Sent:* Monday, November 13, 2006 3:11 PM >>> *To:* ssh...@li...; 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 :-) >>> >>> >>> >>> >>>>>> On Mon, Nov 13, 2006 at 1:06 pm, in message >>>>>> >>> <455...@vo...>, Chris Fernandez >>> <cfe...@vo...> wrote: >>> >>> mobody in this list? :-( >>> >>> >>> >>> Chris Fernandez wrote: >>> >>>> 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: >>>> >>>> >>>>> 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 ' >>>>> >>>> ! ;>&# 160; config_args='-des -Darchname=x86_64-linux >>>> >>> -Dcccdlflags=-fPIC >>> >>>>> -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 >>>>> >>> al/lib64 >>> >>>>> /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 >>>>> >>> -D_FILE_OFFSET_BITS=64 >>> >>>>> -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 >>>>> >>>>> >>>>> >>>>> >>>> &! gt; The issue that I am having is very weird... my script will run >>>> >>> only >>> >>>>> sometimes... the majority of the times looks like it just *hangs* >>>>> >>> and is >>> >>>>> 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 >>>>> >>>>> >>>>> >>>>> >>> ------------------------------------------------------------------------- >>> >>>>> Using Tomcat but need to do more? Need to support web services, >>>>> >>> security? >>> &g! t;> 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 >>> >>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>> >>>>> _______________________________________________ >>>>> Ssh-sftp-perl-users mailing list >>>>> Ssh...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>> ------------------------------------------------------------------------- >>> >>>> 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 >>> >>>> http://sel.as-us.falkag.net/se! l?c >>>> >>> md=lnk&kid=120709&bid=263057&dat=121642 >>> >>>> _______________________________________________ >>>> Ssh-sftp-perl-users mailing list >>>> Ssh...@li... >>>> https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users >>>> >>>> >>>> >>> ------------------------------------------------------------------------- >>> 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 >>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>> _______________________________________________ >>> Ssh-sftp-perl-users mailing list >>> Ssh...@li... >>> https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users >>> >>> ------------------------------------------------------------------------ >>> 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 Do_...@po... >>> 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 >>> pos...@po.... >>> ***************************************************************** >>> >>> >>> >> ------------------------------------------------------------------------- >> 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 >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> Ssh-sftp-perl-users mailing list >> Ssh...@li... >> https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users >> > > |
From: Chris F. <cfe...@vo...> - 2006-11-13 22:30:38
|
<!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"> Hi thanks. I think I have it installed <br> emerge -av math-pari <br> but just in case and since everyone points me to that I will manually install all of them myself...<br> thanks.<br> <br> Ross Kramer wrote: <blockquote cite="mid1163455625.22428.2.camel@slappy" type="cite"> <pre wrap="">Try installing Math::BigInt::GMP or Math::Pari. Net::SSH::Perl is using it's own internal stuff to compute the math, and that is really slow. Sometimes it's slow enough to cause the server to time you out. Check out this reference: <a class="moz-txt-link-freetext" href="http://www.forbiddenweb.org/topic/127735/index.html">http://www.forbiddenweb.org/topic/127735/index.html</a> Hope that helps... On Mon, 2006-11-13 at 16:48 -0600, Chris Fernandez wrote: </pre> <blockquote 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> <pre wrap=""><!----> </pre> </blockquote> <br> </body> </html> |
From: Chris F. <cfe...@vo...> - 2006-11-13 22:28:57
|
Hi and thanks for the reply. I am using gentoo and emerging this supposed to download all those but I will try manually: emerge -av math-pari and see thanks. Glenn Beadle wrote: > Chris, > > 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: > > Math-BigInt-GMP > Math-GMP > Math-BigInt > Math-Pari > > and maybe > > Crypt-RSA. > Crypt-Primes > > > Good luck, > Glenn > > > > > Chris Fernandez wrote: >> 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: >> >>> 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:* ssh...@li... >>> [mailto:ssh...@li...] *On Behalf >>> Of *Frank Carreiro >>> *Sent:* Monday, November 13, 2006 3:11 PM >>> *To:* ssh...@li...; 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 :-) >>> >>> >>> >>> >>>>>> On Mon, Nov 13, 2006 at 1:06 pm, in message >>>>>> >>> <455...@vo...>, Chris Fernandez >>> <cfe...@vo...> wrote: >>> >>> mobody in this list? :-( >>> >>> >>> >>> Chris Fernandez wrote: >>> >>>> 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: >>>> >>>> >>>>> 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 ' >>>>> >>>> ! ;>&# 160; config_args='-des -Darchname=x86_64-linux >>>> >>> -Dcccdlflags=-fPIC >>> >>>>> -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 >>>>> >>> al/lib64 >>> >>>>> /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 >>>>> >>> -D_FILE_OFFSET_BITS=64 >>> >>>>> -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 >>>>> >>>>> >>>>> >>>>> >>>> &! gt; The issue that I am having is very weird... my script will run >>>> >>> only >>> >>>>> sometimes... the majority of the times looks like it just *hangs* >>>>> >>> and is >>> >>>>> 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 >>>>> >>>>> >>>>> >>>>> >>> ------------------------------------------------------------------------- >>> >>>>> Using Tomcat but need to do more? Need to support web services, >>>>> >>> security? >>> &g! t;> 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 >>> >>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>> >>>>> _______________________________________________ >>>>> Ssh-sftp-perl-users mailing list >>>>> Ssh...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users >>>>> >>>>> >>>>> >>>>> >>>> >>> ------------------------------------------------------------------------- >>> >>>> 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 >>> >>>> http://sel.as-us.falkag.net/se! l?c >>>> >>> md=lnk&kid=120709&bid=263057&dat=121642 >>> >>>> _______________________________________________ >>>> Ssh-sftp-perl-users mailing list >>>> Ssh...@li... >>>> https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users >>>> >>>> >>>> >>> ------------------------------------------------------------------------- >>> 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 >>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>> _______________________________________________ >>> Ssh-sftp-perl-users mailing list >>> Ssh...@li... >>> https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users >>> >>> ------------------------------------------------------------------------ >>> 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 Do_...@po... >>> 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 >>> pos...@po.... >>> ***************************************************************** >>> >>> >>> >> >> >> ------------------------------------------------------------------------- >> 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 >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> Ssh-sftp-perl-users mailing list >> Ssh...@li... >> https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users >> >> > |
From: Ross K. <rk...@gr...> - 2006-11-13 22:07:22
|
Try installing Math::BigInt::GMP or Math::Pari. Net::SSH::Perl is using it's own internal stuff to compute the math, and that is really slow. Sometimes it's slow enough to cause the server to time you out. Check out this reference: http://www.forbiddenweb.org/topic/127735/index.html Hope that helps... On Mon, 2006-11-13 at 16:48 -0600, Chris Fernandez wrote: > 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: > > 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:* ssh...@li... > > [mailto:ssh...@li...] *On Behalf > > Of *Frank Carreiro > > *Sent:* Monday, November 13, 2006 3:11 PM > > *To:* ssh...@li...; 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 :-) > > > > > > > > >>> On Mon, Nov 13, 2006 at 1:06 pm, in message > > <455...@vo...>, Chris Fernandez > > <cfe...@vo...> wrote: > > > > mobody in this list? :-( > > > > > > > > Chris Fernandez wrote: > > > 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: > > > > > >> 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 ' > > >! ;>&# 160; config_args='-des -Darchname=x86_64-linux > > -Dcccdlflags=-fPIC > > >> -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 > > al/lib64 > > >> /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 > > -D_FILE_OFFSET_BITS=64 > > >> -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 > > >> > > >> > > >> > > >&! gt; The issue that I am having is very weird... my script will run > > only > > >> sometimes... the majority of the times looks like it just *hangs* > > and is > > >> 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 > > >> > > >> > > >> > > ------------------------------------------------------------------------- > > >> Using Tomcat but need to do more? Need to support web services, > > security? > > &g! t;> 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 > > >> > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > >> _______________________________________________ > > >> Ssh-sftp-perl-users mailing list > > >> Ssh...@li... > > >> https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users > > >> > > >> > > >> > > > > > > > > > > > ------------------------------------------------------------------------- > > > 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 > > > http://sel.as-us.falkag.net/se! l?c > > md=lnk&kid=120709&bid=263057&dat=121642 > > > _______________________________________________ > > > Ssh-sftp-perl-users mailing list > > > Ssh...@li... > > > https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users > > > > > > > > > > > > ------------------------------------------------------------------------- > > 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 > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Ssh-sftp-perl-users mailing list > > Ssh...@li... > > https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users > > > > ------------------------------------------------------------------------ > > 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 Do_...@po... > > 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 > > pos...@po.... > > ***************************************************************** > > > > > > > ------------------------------------------------------------------------- > 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 > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Ssh-sftp-perl-users mailing list > Ssh...@li... > https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users |
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> |
From: Chris F. <cfe...@vo...> - 2006-11-13 21:48:25
|
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: > 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:* ssh...@li... > [mailto:ssh...@li...] *On Behalf > Of *Frank Carreiro > *Sent:* Monday, November 13, 2006 3:11 PM > *To:* ssh...@li...; 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 :-) > > > > >>> On Mon, Nov 13, 2006 at 1:06 pm, in message > <455...@vo...>, Chris Fernandez > <cfe...@vo...> wrote: > > mobody in this list? :-( > > > > Chris Fernandez wrote: > > 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: > > > >> 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 ' > >! ;>&# 160; config_args='-des -Darchname=x86_64-linux > -Dcccdlflags=-fPIC > >> -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 > al/lib64 > >> /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 > -D_FILE_OFFSET_BITS=64 > >> -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 > >> > >> > >> > >&! gt; The issue that I am having is very weird... my script will run > only > >> sometimes... the majority of the times looks like it just *hangs* > and is > >> 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 > >> > >> > >> > ------------------------------------------------------------------------- > >> Using Tomcat but need to do more? Need to support web services, > security? > &g! t;> 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 > >> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > >> _______________________________________________ > >> Ssh-sftp-perl-users mailing list > >> Ssh...@li... > >> https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users > >> > >> > >> > > > > > > > ------------------------------------------------------------------------- > > 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 > > http://sel.as-us.falkag.net/se! l?c > md=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Ssh-sftp-perl-users mailing list > > Ssh...@li... > > https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users > > > > > > > ------------------------------------------------------------------------- > 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 > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Ssh-sftp-perl-users mailing list > Ssh...@li... > https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users > > ------------------------------------------------------------------------ > 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 Do_...@po... > 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 > pos...@po.... > ***************************************************************** > > |
From: Kirkland, B. <Bru...@po...> - 2006-11-13 21:35:04
|
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=20 =20 #!/usr/local/bin/perl -w # test the perl modules use Net::SSH::Perl; # login info $user=3D"real user goes here"; $pass=3D"real pw goes here"; $host=3D"real serer goes here "; # for debugging, this will give you something like ssh -v my $ssh =3D Net::SSH::Perl->new($host, debug =3D> 1); =20 $ssh->login($user, $pass) ; ($stdout, $stderr, $exit) =3D $ssh->cmd("touch /tmp/$host-test"); if ( $stderr ) { print "error $stderr" ; exit 1; } exit; =20 =20 =20 ________________________________ From: ssh...@li... [mailto:ssh...@li...] On Behalf Of Frank Carreiro Sent: Monday, November 13, 2006 3:11 PM To: ssh...@li...; 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 :-)=20 >>> On Mon, Nov 13, 2006 at 1:06 pm, in message <455...@vo...>, Chris Fernandez <cfe...@vo...> wrote: mobody in this list? :-( Chris Fernandez wrote: > 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: > =20 >> my system is Gentoo GNU/Linux >> >> perl -V >> Summary of my perl5 (revision 5 version 8 subversion 8) configuration: >> Platform: >> osname=3Dlinux, osvers=3D2.6.16-gentoo-r13, = archname=3Dx86_64-linux >> uname=3D'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 ' >! ;>&# 160; config_args=3D'-des -Darchname=3Dx86_64-linux -Dcccdlflags=3D-fPIC >> -Dccdlflags=3D-rdynamic -Dcc=3Dx86_64-pc-linux-gnu-gcc = -Dprefix=3D/usr >> -Dvendorprefix=3D/usr -Dsiteprefix=3D/usr -Dlocincpth=3D=20 >> -Doptimize=3D-march=3Dnocona -O2 -fomit-frame-pointer -pipe -Duselargefiles >> -Dd_semctl_semun -Dscriptdir=3D/usr/bin = -Dman1dir=3D/usr/share/man/man1 >> -Dman3dir=3D/usr/share/man/man3 = -Dinstallman1dir=3D/usr/share/man/man1 >> -Dinstallman3dir=3D/usr/share/man/man3 -Dman1ext=3D1 -Dman3ext=3D3pm >> -Dinc_version_list=3D5.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=3DGentoo -Ud_csh >> -Dusenm -Ui_ndbm -Ui_gdbm -Di_db >> -Dusrinc=3D/usr/include/gentoo-multilib/amd64 -Dlibpth=3D/! usr/loc al/lib64 >> /lib64 /usr/lib64' >> hint=3Drecommended, useposix=3Dtrue, d_sigaction=3Ddefine >> usethreads=3Dundef use5005threads=3Dundef useithreads=3Dundef >> usemultiplicity=3Dundef >> useperlio=3Ddefine d_sfio=3Dundef uselargefiles=3Ddefine = usesocks=3Dundef >> use64bitint=3Ddefine use64bitall=3Ddefine uselongdouble=3Dundef >> usemymalloc=3Dn, bincompat5005=3Dundef >> Compiler: >> cc=3D'x86_64-pc-linux-gnu-gcc', ccflags =3D'-fno-strict-aliasing = -pipe >> -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 >> -I/usr/include/gdbm', >> optimize=3D'-march=3Dnocona -O2 -fomit-frame-pointer -pipe&#! 39;, = ; >> cppflags=3D'-fno-strict-aliasing -pipe = -Wdeclaration-after-statement >> -I/usr/include/gdbm' >> ccversion=3D'', gccversion=3D'4.1.1 (Gentoo 4.1.1)', = gccosandvers=3D'' >> intsize=3D4, longsize=3D8, ptrsize=3D8, doublesize=3D8, = byteorder=3D12345678 >> d_longlong=3Ddefine, longlongsize=3D8, d_longdbl=3Ddefine, longdblsize=3D16 >> ivtype=3D'long', ivsize=3D8, nvtype=3D'double', nvsize=3D8, = Off_t=3D'off_t', >> lseeksize=3D8 >> alignbytes=3D8, prototype=3Ddefine >> Linker and Libraries: >> ld=3D'x86_64-pc-linux-gnu-gcc', ldflags =3D' -L! /usr/lo = cal/lib64' >> libpth=3D/usr/local/lib64 /lib64 /usr/lib64 >> libs=3D-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc >> perllibs=3D-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc >> libc=3D/lib/libc-2.4.so, so=3Dso, useshrplib=3Dfalse, = libperl=3Dlibperl.a >> gnulibc_version=3D'2.4' >> Dynamic Linking: >> dlsrc=3Ddl_dlopen.xs, dlext=3Dso, d_dlsymun=3Dundef, ccdlflags=3D'-rdynamic' >> cccdlflags=3D'-fPIC', lddlflags=3D'-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 >> >> >> >&! gt; The issue that I am having is very weird... my script will run only >> sometimes... the majority of the times looks like it just *hangs* and is >> 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 >> >> >> ------------------------------------------------------------------------ - >> Using Tomcat but need to do more? Need to support web services, security? &g! t;> 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 >> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 >> _______________________________________________ >> Ssh-sftp-perl-users mailing list >> Ssh...@li... >> https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users >> >> =20 >> =20 > > > ------------------------------------------------------------------------ - > 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 > http://sel.as-us.falkag.net/se! l?c md=3Dlnk&kid=3D120709&bid=3D263057&dat=3D121642 > _______________________________________________ > Ssh-sftp-perl-users mailing list > Ssh...@li... > https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users > > =20 ------------------------------------------------------------------------ - 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 http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 _______________________________________________ Ssh-sftp-perl-users mailing list Ssh...@li... https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users ________________________________ 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 Do_...@po... 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 pos...@po.... ***************************************************************** =0D |
From: Frank C. <car...@ld...> - 2006-11-13 20:09:59
|
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 :-) >>> On Mon, Nov 13, 2006 at 1:06 pm, in message <455...@vo...>, Chris Fernandez <cfe...@vo...> wrote: mobody in this list? :-( Chris Fernandez wrote: > 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: > >> 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 ' >> config_args='-des -Darchname=x86_64-linux -Dcccdlflags=-fPIC >> -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/local/lib64 >> /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 -D_FILE_OFFSET_BITS=64 >> -I/usr/include/gdbm', >> optimize='-march=nocona -O2 -fomit-frame-pointer -pipe', >> 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/local/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 >> 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 >> >> >> >> The issue that I am having is very weird... my script will run only >> sometimes... the majority of the times looks like it just *hangs* and is >> 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 >> >> >> ------------------------------------------------------------------------- >> 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 >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> Ssh-sftp-perl-users mailing list >> Ssh...@li... >> https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users >> >> >> > > > ------------------------------------------------------------------------- > 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 > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Ssh-sftp-perl-users mailing list > Ssh...@li... > https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users > > ------------------------------------------------------------------------- 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 http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Ssh-sftp-perl-users mailing list Ssh...@li... https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users ---------------------------------------------------------------------- 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. |
From: Chris F. <cfe...@vo...> - 2006-11-13 19:06:11
|
mobody in this list? :-( Chris Fernandez wrote: > 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: > >> 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 ' >> config_args='-des -Darchname=x86_64-linux -Dcccdlflags=-fPIC >> -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/local/lib64 >> /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 -D_FILE_OFFSET_BITS=64 >> -I/usr/include/gdbm', >> optimize='-march=nocona -O2 -fomit-frame-pointer -pipe', >> 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/local/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 >> 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 >> >> >> >> The issue that I am having is very weird... my script will run only >> sometimes... the majority of the times looks like it just *hangs* and is >> 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 >> >> >> ------------------------------------------------------------------------- >> 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 >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> Ssh-sftp-perl-users mailing list >> Ssh...@li... >> https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users >> >> >> > > > ------------------------------------------------------------------------- > 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 > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Ssh-sftp-perl-users mailing list > Ssh...@li... > https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users > > |
From: Chris F. <cfe...@vo...> - 2006-11-13 04:11:19
|
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: > 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 ' > config_args='-des -Darchname=x86_64-linux -Dcccdlflags=-fPIC > -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/local/lib64 > /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 -D_FILE_OFFSET_BITS=64 > -I/usr/include/gdbm', > optimize='-march=nocona -O2 -fomit-frame-pointer -pipe', > 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/local/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 > 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 > > > > The issue that I am having is very weird... my script will run only > sometimes... the majority of the times looks like it just *hangs* and is > 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 > > > ------------------------------------------------------------------------- > 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 > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Ssh-sftp-perl-users mailing list > Ssh...@li... > https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users > > |
From: Chris F. <cfe...@vo...> - 2006-11-13 04:06:49
|
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 ' config_args='-des -Darchname=x86_64-linux -Dcccdlflags=-fPIC -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/local/lib64 /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 -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm', optimize='-march=nocona -O2 -fomit-frame-pointer -pipe', 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/local/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 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 The issue that I am having is very weird... my script will run only sometimes... the majority of the times looks like it just *hangs* and is 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 |
From: Michael A. <dae...@ya...> - 2006-10-31 02:33:47
|
Hi,=0A=0A=0AI'm using FreeBSD6.x, when running passwd, the passwd prompts l= ooks like:=0A=0AChanging local password for username=0AOld Password:=0ANew = Password:=0ARetype New Password:=0A=0Aso I change this portion of remoteint= eract2.pl:=0A=0A=0A$ssh->register_handler("stderr", sub {=0A my($channel= , $buffer) =3D @_;=0A my $str =3D $buffer->bytes;=0A=0A if ($str eq "= Changing local password for username\nOld Password:") {=0A $channel-= >send_data($old_password);=0Aprint "str1: $str";=0A }=0A=0A elsif ($s= tr =3D~ /^New/) {=0A $channel->send_data($new_password);=0Aprint "st= r2: $str";=0A }=0A=0A elsif ($str =3D~ /^Retype/) {=0A $channe= l->send_data($new_password);=0Aprint "str3: $str";=0A }=0Aprint "My stri= ng is: $str";=0A});=0A=0A=0A=0AThe last debug looks like this: I inserted p= rint statements hoping to capture the string being received but unfortunate= ly, only the last print statement gets executed..=0A=0A=0A=0ALogin complete= d, opening dummy shell channel.=0Achannel 0: new [client-session]=0ARequest= ing channel_open for channel 0.=0Achannel 0: open confirm rwindow 0 rmax 32= 768=0AGot channel open confirmation, requesting shell.=0ARequesting service= shell on channel 0.=0Achannel 1: new [client-session]=0ARequesting channel= _open for channel 1.=0AEntering interactive session.=0ASending command: pas= swd=0ARequesting service exec on channel 1.=0Achannel 1: open confirm rwind= ow 0 rmax 32768=0Ainput_channel_request: rtype exit-status reply 0=0Achanne= l 1: rcvd eof=0Achannel 1: output open -> drain=0Achannel 1: rcvd close=0Ac= hannel 1: input open -> closed=0Achannel 1: close_read=0AMy string is: Chan= ging local password for username=0Apasswd: pam_chauthtok(): conversation fa= ilure=0Achannel 1: obuf empty=0Achannel 1: output drain -> closed=0Achannel= 1: close_write=0Achannel 1: send close=0Achannel 1: full closed=0A=0AThe p= assword doesn't seem to change. Perhaps it has something to do with "passwd= : pam_chauthok(): conversation failure"=0AAny idea what's wrong here?=0A=0A= Thanks..=0A=0A=0A=0A=0A=0A |
From: Frank C. <car...@ld...> - 2006-10-24 13:53:59
|
Gentlemen,=20=20=20=20 Hopefully this email will make it through to the forum. I've noticed sourc= eforge=20 has had many problems lately.=20 I've been working for several weeks working through this new module and lov= e=20 what I'm seeing. Easier installation plus the speed at which the code exec= utes=20 it great! I'm very familiar with the Net::SSH::Perl module and have made t= he=20 jump to NET::SSH2.=20=20=20=20 Everything was working great until I attempted to read STDERR across the SS= H=20 channel. Now I'm falling all over the place. I've read perldoc for Channe= l and=20 Net::SSH2. I've examined Rover and POE::Net::SSH2 coding to help understan= d how=20 I can read STDERR. I'm wondering if I'm making this tougher than it needs = to=20 be. Here is what I'm trying to do.=20=20=20=20 {snip}=20=20 # Open a channel and create a shell.=20 my $chan =3D $ssh2=E2=80=91>channel();=20 $chan=E2=80=91>shell();=20 # Execute a command and pass along the users password.=20 print $chan sudo cat /etc/passwd \n;=20 print STDERR $password;=20 # Read STDERR subchannel=20 my ($error, $buf);=20 print $chan=E2=80=91>read($buf, 1024);=20 Any thoughts on how I can push a password to sudo through STDERR? I think = I'm close. I've even tried=20 print $_ while <$chan>;=20 $chan->close;=20 Thanks!=20 ---------------------------------------------------------------------- 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 i= ntended recipient, please contact the sender by reply email and destroy all= copies of the original message. |
From: U235Sentinel <u23...@gm...> - 2006-10-10 20:55:39
|
So I would do something like this? my $poll=$ssh->poll(1,'\stderr'); Basically I'm trying to setup a trigger to capture STDERR when it comes in. I'm trying to figure out how to use this to run a subroutine. Am I on the right track with this? I've looked at perldoc however it's not very clear on how I can use poll to trigger an event. Thanks a bunch! |
From: David R. <dbr...@cp...> - 2006-10-10 01:07:24
|
On Monday October 9, 2006 04:01, hugues wrote: > I think i've found a bug and the fix for it in the Net::SSH2 module. > It happens in the SSH2.xs file inside the net_sf_realpath() function. > > Probably a cut-and-paste left-over from net_sf_readlink() function > above ;-) > > Here is the fix (at least it fixes things for me ;-): <snip> Thanks, it'll be in 0.10. -- Dave Isa. 40:31 |
From: hugues <Hug...@af...> - 2006-10-09 09:05:26
|
Hi David, I think i've found a bug and the fix for it in the Net::SSH2 module. It happens in the SSH2.xs file inside the net_sf_realpath() function. Probably a cut-and-paste left-over from net_sf_readlink() function above ;-) Here is the fix (at least it fixes things for me ;-): Index: Net-SSH2/SSH2.xs =================================================================== --- Net-SSH2/SSH2.xs (revision 50) +++ Net-SSH2/SSH2.xs (working copy) @@ -1520,7 +1520,7 @@ pv_real = SvPVX(real); count = libssh2_sftp_symlink_ex(sf->sftp, - pv_path, len_path, pv_real, MAXPATHLEN, LIBSSH2_SFTP_READLINK); + pv_path, len_path, pv_real, MAXPATHLEN, LIBSSH2_SFTP_REALPATH); if (count < 0) { SvREFCNT_dec(real); -- Hugues Lafarge || Email: Hug...@af... Agence France Presse || Phone: +33 1 40 41 77 15 4 rue de la bourse, 75002 Paris || Fax: +33 1 40 41 79 24 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This e-mail, and any file transmitted with it, is confidential and intended solely for the use of the individual or entity to whom it is addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. For more information on Agence France-Presse, please visit our web site at http://www.afp.com -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- |
From: hugues <Hug...@af...> - 2006-10-09 08:06:49
|
Hi David, I just sent this request to the 'ssh-sftp-perl-users' mailing list four days ago, but did not see it appear, so i'm resending it to you directly with the mailing-list in copy. Please forgive me if that's fealing rude to you. Here is the description of my problem: Using Net::SFTP/Net::SSH::Perl, i'm having trouble finding the right way to test if a connection is still really 'connected'. I'm working on an application than handles delivery to remote sites with "long-life connection handles" through which it send data via the Net::SFTP module. The application keeps the connection handles open and sends data when there is some available. The problem is that the remote server may close its end of the connection, and i need a way to detect that so i can re-establish connection when that happens. What i'm actually trying to do if the following: - try the operation (e.g 'put file') when i need to send data - if the operation fails, then check connection state, and reconnect if the check tells me that the connection is closed/broken. I first thought i could use the Net::SSH::Perl::sock(), but that does not seems to work, as it still returns me a valid socket object even when the connection has been broken. I tried to invoke the fileno() method on the returned socket, but that also works (returns me a valid file number instead of 'undef'). Any help would be greatly appreciated. PS: I can provide more details if needed. BTW, i'm also interested in a solution to that same problem with Net::SSH2 that i'm also trying to use (but i'm having some other problems with it, that i'll perhaps describe in another message if i cannot solve them by myself). -- Hugues Lafarge || Email: Hug...@af... Agence France Presse || Phone: +33 1 40 41 77 15 4 rue de la bourse, 75002 Paris || Fax: +33 1 40 41 79 24 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This e-mail, and any file transmitted with it, is confidential and intended solely for the use of the individual or entity to whom it is addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. For more information on Agence France-Presse, please visit our web site at http://www.afp.com -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- |
From: U235Sentinel <u23...@gm...> - 2006-10-06 16:08:45
|
> In NET::SSH::PERL we had a "register handler" method we could call which > I've used to trigger a subroutine when we receive STDERR traffic. Is there > some way to do this with NET::SSH2? > > The NET::SSH::PERL module had the following defined for the method: > > sub register_handler { } > > I'm presuming the code is found elsewhere (maybe this is a regular Perl > method?) > > Any help/tips on where I could follow up on this is greatly appreciated. > Thanks! > Not in the same way, but if you look at the poll method you can get stderr events, and Net::SSH2::Channel lets you read stderr separately > (see perldoc). So I would do something like this? my @subroutine { print "** Traffic no stderr" if $STDERR; } my $trigger=$ssh->poll(250, \@subroutine); Would this kick off my subroutine when it seens traffic on STDERR? Basically I'm trying to setup a trigger to do something when it seens traffic on STDERR. I'm trying to figure out how to use this to run a subroutine. Am I on the right track with this? Thanks a bunch! |
From: hugues <Hug...@af...> - 2006-10-04 13:28:52
|
Hi, I'm using Net::SSH::Perl, and i'm having trouble finding the right way to test if a connection (i.e, a Net::SSH::Perl object) is still 'connected'. I'm working on an application than handles delivery to remote sites with "long-life connection handles" through which it send data when there is. The application keeps the connection objects open and sends data when available. The problem is that the remote server may close its end of the connection, and i need a way to detect that so i can re-establish connection when that happens. What i'm actually trying to do if the following: - try the operation (e.g 'put file') when i must - if the operation fails, then check connection state, and reconnect if the check tells me that the connection is closed/broken. I first thought i could use the Net::SSH::Perl::sock(), but that does not seems to work, as it still returns me a valid socket object even when the connection has been broken. I tried to invoke the fileno() method on the returned socket, but that also works (returns me a valid file number instead of 'undef'). Any help would be greatly appreciated. PS: I can provide more details if needed. -- Hugues Lafarge || Email: Hug...@af... Agence France Presse || Phone: +33 1 40 41 77 15 4 rue de la bourse, 75002 Paris || Fax: +33 1 40 41 79 24 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This e-mail, and any file transmitted with it, is confidential and intended solely for the use of the individual or entity to whom it is addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. For more information on Agence France-Presse, please visit our web site at http://www.afp.com -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- |
From: U235Sentinel <u23...@gm...> - 2006-10-04 07:11:49
|
So I would do something like this? my $poll=$ssh->poll(1,'\stderr'); my $error->read('stderr',50,1); Basically I'm trying to setup a trigger to capture STDERR when it comes in. I'm trying to figure out how to use this to run a subroutine. Am I on the right track with this? Thanks a bunch! On 9/30/06, ssh...@li... < ssh...@li...> wrote: > > Send Ssh-sftp-perl-users mailing list submissions to > ssh...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users > or, via email, send a message with subject or body 'help' to > ssh...@li... > > You can reach the person managing the list at > ssh...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Ssh-sftp-perl-users digest..." > > > Today's Topics: > > 1. Re: net::ssh2 and register_handler (David Robins) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 29 Sep 2006 20:05:08 -0500 > From: David Robins <dbr...@cp...> > Subject: Re: [Ssh-sftp-perl-users] net::ssh2 and register_handler > To: ssh...@li... > Message-ID: <200...@cp...> > Content-Type: text/plain; charset="iso-8859-1" > > On Wednesday September 27, 2006 16:18, U235Sentinel wrote: > > In NET::SSH::PERL we had a "register handler" method we could call which > > I've used to trigger a subroutine when we receive STDERR traffic. Is > there > > some way to do this with NET::SSH2? > > > > The NET::SSH::PERL module had the following defined for the method: > > > > sub register_handler { } > > > > I'm presuming the code is found elsewhere (maybe this is a regular Perl > > method?) > > > > Any help/tips on where I could follow up on this is greatly appreciated. > > Thanks! > > Not in the same way, but if you look at the poll method you can get stderr > events, and Net::SSH2::Channel lets you read stderr separately (see > perldoc). > > -- > Dave > Isa. 40:31 > > > > ------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ------------------------------ > > _______________________________________________ > Ssh-sftp-perl-users mailing list > Ssh...@li... > https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users > > > End of Ssh-sftp-perl-users Digest, Vol 4, Issue 4 > ************************************************* > |