in reply to Multiple connections with single Net::OpenSSH object

That issue is probably more related to the server side than to the client but you can try using another SSH client module (Net::SSH2 or Net::SSH::Perl) to see if it makes any difference.

In any case, the common solution to this kind of problems is to set a proper log rotation police. On my Linux box, wtmp files are reduced to 5% of its original size!

Which server software and version is running in the remote side? I would also ask the sys-admin to check that there isn't anything estrange on the sshd_config (or equivalent) configuration file.

  • Comment on Re: Multiple connections with single Net::OpenSSH object

Replies are listed 'Best First'.
Re^2: Multiple connections with single Net::OpenSSH object
by Anonymous Monk on Sep 29, 2009 at 21:42 UTC

    Sshd version on remote side is OpenSSH_5.0p1. As I stated earlier, I have no idea who the admin is, and in the odd chance that I'd find him through all the layers of bureaucracy at my business, I'm sure he'd not be willing to make any changes using the excuse that this change could hurt other users.

    I will try using other modules, but I vaguely remember back when originally writing this code that OpenSSH was the only module I could get working for some reason.

      Probably, the module that would solve your problem is Net::SSH::Expect. It launches one shell and then runs the commands talking to it, so there is only one login per connection.