http://www.perlmonks.org?node_id=773077


in reply to Re^2: Multi-hops with Net::OpenSSH
in thread Multi-hops with Net::OpenSSH

Hi salva,

Do I include this this on ScriptA or ScriptB?

ScriptA ssh's to $host1 and executes ScriptB which ssh's to $host2.

I tried adding it to ScriptB but get the following error from Net::OpenSSH::new() (which is where my error is coming from)
Invalid or bad combination of option ('tty')

Thanks!

Replies are listed 'Best First'.
Re^4: Multi-hops with Net::OpenSSH
by salva (Canon) on Jun 22, 2009 at 07:38 UTC
    Do I include this this on ScriptA or ScriptB?

    I can't tell you without seeing the scripts source code! post them.