in reply to How to solve Pseudo terminal issue OpenSSH

Hi waytoperl,

What does 'show clock' command do? If it is screen-based command then you have to force the pseudo-terminal creation like this (not tested, Net::OpenSSH is not installed on my box):

my $ssh = Net::OpenSSH->new("$host", user => "$user", passwd => "$pass +wd", timeout => 90, tty => 1 );
You can read ssh for the details:
-t Force pseudo-tty allocation. This can be used to exe +cute arbi- trary screen-based programs on a remote machine, which can + be very useful, e.g. when implementing menu services. Multip +le -t options force tty allocation, even if ssh has no local tty +.

Replies are listed 'Best First'.
Re^2: How to solve Pseudo terminal issue OpenSSH
by waytoperl (Beadle) on May 14, 2015 at 00:42 UTC
    What does 'show clock' command do?

    Will display remote machine clock

    Force creation of Pseudo-terminal failed with an error