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


in reply to Net:::OpenSSH Prompt Access

There is no such thing as the current prompt.

You get a prompt when you run an interactive shell but Net::OpenSSH doesn't talk to a remote shell. It directly executes the commands given. The SSH protocol allows to do that.