Net::SSH::Perl extremely slow?

Ask a Question related to PERL Modules, Design and Development.

  1. #1

    Default Net::SSH::Perl extremely slow?

    I have a simple perl script that connects to a remote machine and
    executes a command. Net::SSH::Perl seems etremely slow, but I've tried
    it on 2 machines (Suse 9.3 and Suse 9.2). They aren't the fastest
    machine, but both are over 2GHz so I thought I'd be ok. Both have 1 Gig
    of RAM. I've tested over the network and against the loopback
    interface.

    here's the code. It ends up executing completely, it just takes 20-30
    seconds.

    Does this seem unusually long to anyone?

    <trim>
    $ssh = Net::SSH::Perl->new("192.168.1.69",debug=>1,protocol=>2,options
    =>[ "UserKnownHostsFile /var/lib/wwwrun/.ssh/ssh_known_hosts",
    "IdentityFile /var/lib/wwwrun/.ssh/id_dsa" ] );
    $ssh->login("webrun");
    #
    ($out, $err, $exit)=print $ssh->cmd("ls -la");
    <trim>

    tia, y

    Yon Guest

  2. Similar Questions and Discussions

    1. EXTREMELY slow file transfer HELP!
      I have a tremendous problem. I have about 15 sites that I developed and manage with Dreamweaver. For some reason the transfer rate for one of them...
    2. Extremely Slow Printing in 6.01
      Thanks for your response. That doesn't seem to help though. Whereabouts are the "issues regarding post script vs. PCL" that you mention? ...
    3. Extremely Slow WebService
      My web service is running extrememly slow when consumed in Excel VBA (using MS Office XP Web Services toolkit to add a Web Reference to ws). I'm...
    4. Extremely slow wireless connection over 802.11b
      First take a look at the Netgear router. Make sure that it is set up to handle the highest speed it is capable of. I use a LinkSys and there is a...
    5. Database is extremely slow
      I have an Oracle 7.3.4.4 database that is experiencing extremely slow response times in the past few days. I know that one of the tables had as...
  3. #2

    Default Re: Net::SSH::Perl extremely slow?

    "Yon" <yonyohnson@hotmail.com> writes:
    > I have a simple perl script that connects to a remote machine and
    > executes a command. Net::SSH::Perl seems etremely slow, but I've tried
    > it on 2 machines (Suse 9.3 and Suse 9.2). They aren't the fastest
    > machine, but both are over 2GHz so I thought I'd be ok. Both have 1 Gig
    > of RAM. I've tested over the network and against the loopback
    > interface.
    >
    > here's the code. It ends up executing completely, it just takes 20-30
    > seconds.
    >
    > Does this seem unusually long to anyone?
    >
    > <trim>
    > $ssh = Net::SSH::Perl->new("192.168.1.69",debug=>1,protocol=>2,options
    > =>[ "UserKnownHostsFile /var/lib/wwwrun/.ssh/ssh_known_hosts",
    > "IdentityFile /var/lib/wwwrun/.ssh/id_dsa" ] );
    > $ssh->login("webrun");
    > #
    > ($out, $err, $exit)=print $ssh->cmd("ls -la");
    > <trim>
    >
    > tia, y
    Try to supply passwd and port like this:
    $ssh = Net::SSH::Perl->new("192.168.1.69", port=>22);
    $ssh -> login('webrun','passwd');

    My time is around 5 seconds.

    HTH, Radek
    Radomir Hejl Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139