See the section about integrating with Expect on the module documentation.my ($pty, $pid) = $ssh->open2pty();
In any case, you should investigate why ssh is requesting a remote tty when it is not requested. That is quite unusual (even if probably harmless).
In reply to Re^9: How to solve Pseudo terminal issue OpenSSH
by salva
in thread How to solve Pseudo terminal issue OpenSSH
by waytoperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |