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

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.

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

Replies are listed 'Best First'.
Re^3: Multiple connections with single Net::OpenSSH object
by salva (Canon) on Sep 30, 2009 at 06:50 UTC
    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.