Re: [Ssh-sftp-perl-users] Net::SSH::Perl login authentication is taking1 minute 40 seconds
Brought to you by:
dbrobins
|
From: Thompson, M. <Mar...@uk...> - 2006-12-18 09:43:04
|
I had a similar issue when I first installed Net::SSH::Perl. I think
it's down to using perl versions of some of the encryption libraries.
I'm afraid I can't remember exactly what I did, but I went through the
encryption modules and made sure I have nativley compliled versions.
This dramtically reduced my login times as Net::SSH::Perl was'nt having
to use perl code to encrypt and decrypt.
Hope this helps,
Mark=20
-----Original Message-----
From: ssh...@li...
[mailto:ssh...@li...] On Behalf Of
rkb@i.frys.com
Sent: 17 December 2006 06:37
To: ssh...@li...
Subject: [Ssh-sftp-perl-users] Net::SSH::Perl login authentication is
taking1 minute 40 seconds
I'm developing a cgi script that uses Net::SSH::Perl, but the login
authentication is taking 1 minute 40 seconds. As you can imagine, 1:40
too long especially since I will be connecting to 4 servers.
Is this a known issue and is there a workaround?
Here's my test script and the output.
#!/usr/bin/perl
use strict;
use warnings;
use CGI qw/:standard/;
use CGI::Carp qw(fatalsToBrowser warningsToBrowser); use Net::SSH::Perl;
use Data::Dumper;
$|++;
my $imap1 =3D 'imap1';
my %params =3D (debug =3D> 1, protocol =3D> 2);
print header(),
start_html(),
"creating ssh object: ", scalar localtime, br;
warningsToBrowser(1);
my $ssh_imap1 =3D Net::SSH::Perl->new($imap1, %params) || die "can't ssh
$!"; print "ssh object created: ", scalar localtime, "<br>$/";
print "logging in: ", scalar localtime, br; $ssh_imap1->login('me');
print "logged in: ", scalar localtime, br;
my ($stdout, $stderr, $exit) =3D $ssh_imap1->cmd('pwd'); $stdout =3D~
s/\n/<br>/g;
print "<br>$stdout",
end_html();
------------------------------------------------------------------------
--------------
creating ssh object: Sat Dec 16 21:44:04 2006 ssh object created: Sat
Dec 16 21:44:04 2006 logging in: Sat Dec 16 21:44:04 2006 logged in: Sat
Dec 16 21:45:44 2006
/home/me
------------------------------------------------------------------------
-
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=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDE
V
_______________________________________________
Ssh-sftp-perl-users mailing list
Ssh...@li...
https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users
This e-mail has come from Experian, winner of the UK's 'Business of the Yea=
r' 2003 and 2005.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Information in this e-mail and any attachments are confidential, and may no=
t be copied or used by anyone other than the addressee, nor disclosed to an=
y third party without our permission. There is no intention to create any l=
egally binding contract or other binding commitment through the use of this=
electronic communication unless it is issued in accordance with the Experi=
an Limited standard terms and conditions of purchase or other express writt=
en agreement between Experian Limited and the recipient Experian Limited (r=
egistration number 653331) Registered office: Talbot House, Talbot Street, =
Nottingham NG80 1TH
Although Experian has taken reasonable steps to ensure that this communicat=
ion and any attachments are free from computer virus, you are advised to ta=
ke your own steps to ensure that they are actually virus free.
|