I'm connecting to a remote service which uses a customized shell for doing some provisioning stuff. Problem is, that it only works when issuing the commands in interactive mode with a PTY allocated.
When checking the code for SSH2.pm I found that only in case of $ssh->shell a pty is allocated, the use_pty is actually ignored throughout the code. I have tested with all combinations of interactive and use_pty, with no success. When I use the shell method, everything works as expected.
What is required to have a pty allocated when use_pty is set for using cmd, is this even possible with SSH2 (I guess it must be, as it works with shell too).
Any comments would be greatly appreciated.
(10)
]
