This in no way answers your actual question, but it may be a solution to the problem

why not skip the keyboard-interactive all together, and use one of the earlier things on the list, one that won't ever let you down...

How about passwordless Ssh keys? they're quick, fun and easy to use!
This should be enough to get you going, you may want to restirct the commands that can be run with this key, etc. (ask the man, he'll know)

Just type the things in bold, and you're done
f00li5h@localhost:~$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/f00li5h/.ssh/id_rsa): enter
Enter passphrase (empty for no passphrase): enter
Enter same passphrase again: enter
Your identification has been saved in /home/f00li5h/.ssh/id_rsa.
Your public key has been saved in /home/f00li5h/.ssh/id_rsa.pub.
The key fingerprint is: omitted

# now append the new key to the list of keys allowed on the remote host
f00li5h@localhost:~$ cat ~/.ssh.id_rsa.pub | ssh $otherbox ' cat >> .ssh/authorized_keys'
Password: enter
that will be the last time you have to give a password for $user_you_are_now@$host_you_are_at_now to ssh to $user_you_specified@$otherbox

Just make sure that your home directory, and your ssh directory are not group or world writable, or ssh will ignore the hey (it's a little paranoid, don't ya know)

I've made whole bundles of assumptions here, but it still may help. (this is also super handy if you have home directories common to many boxes, because the keys end up on all of the machines)

will: do{ perl programming } for $cash;

In reply to Re: IO::Pty, Net::Telnet and SSH by f00li5h
in thread IO::Pty, Net::Telnet and SSH [SOLVED] by gonza

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.