in reply to Interactive commands via ssh

Hi Seq,

If the machine you are executing these commands from is not Win32, then I can recommend Net::OpenSSH. Although I haven't yet done much of this myself, it does allow communicating interactively with the processes on the remote end. I'm not sure why you said "expect is not an answer", but note that tying Expect together with Net::OpenSSH, as shown in the latter's documentation, would allow you to script interactions with the remote side.

Hope this helps,
-- Hauke D

Replies are listed 'Best First'.
Re^2: Interactive commands via ssh
by Seq (Novice) on Feb 14, 2017 at 09:01 UTC
    All those servers are Debian.

    Let's see, how that Net::OpenSSH bends..

    Expect is not an option, cause there will be questions that I can't anticipate.

      I don't think that Net::OpenSSH is answer.

      Can't find interaction...