kburns1969 has asked for the wisdom of the Perl Monks concerning the following question:

Is there a way using Net::OpenSSH to find out what the current prompt is?

Replies are listed 'Best First'.
Re: Net:::OpenSSH Prompt Access
by salva (Canon) on Sep 12, 2013 at 20:47 UTC
    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.

      I had a feeling it operated a bit differently. And about 1000x faster than other Perl SSH mods. Thanks !!
        Net::OpenSSH is as fast as a SSH client can be and the same can be said for most other SSH modules, i.e. Net::SSH::Perl (as far as Math::Pari installed), Net::SSH2, etc. The only one that's quite slower is Net::SSH because it establishes a new SSH connection every time it executes a remote command.