in reply to How to solve Pseudo terminal issue OpenSSH

Are you just trying to execute the command "show" with the argument "clock"? If so, why are you using stdin_data at all? Shouldn't my @output = $ssh->capture(@cmd); be enough?

a remote ox

Not sure what OS oxen run... j/k ;-)

Replies are listed 'Best First'.
Re^2: How to solve Pseudo terminal issue OpenSSH
by waytoperl (Beadle) on May 11, 2015 at 22:28 UTC

    Still same issue with my @output = $ssh->capture(@cmd);

    # open_ex: ['ssh','-O','check','-T','-S','/root/.libnet-openssh-perl/u +ser-10.253.10.10-25316-608967','-l','user','10.253.10.10','--'] # _waitpid(25319) => pid: 25319, rc: 0, err: # open_ex: ['ssh','-S','/root/.libnet-openssh-perl/user-10.253.10.10-2 +5316-608967','-l','user','10.253.10.10','--','show clock'] # _waitpid(25320) => pid: 25320, rc: 0, err: # open_ex: ['ssh','-O','exit','-T','-S','/root/.libnet-openssh-perl/us +er-10.253.10.10-25316-608967','-l','user','10.253.10.10','--'] # _waitpid(25321) => pid: 25321, rc: 0, err: