Howdy Folks,

I am attempting to do something that was discussed here a while back. Unfortunately the solution that was given at that time does not work in my case, the ssh keys can NOT be set to automatically allow a connect.

I need to use expect to control a script that uses expect to do some tasks over ssh. If automated login is not supported, the script that I call pops up a password prompt (straight out of ssh). When my script calls the first script, the error "Pseudo-terminal will not be allocated because stdin is not a terminal" is all I get back -- no password prompt. I understand that I don't have a TTY and that I must use IO:Tty to perform the relevant magic (this was the suggestion of Merlyn in that thread).

I have been RTFMing all afternoon and have come to roadblock. I just don't understand the syntax of how to use $object->manual_stty, $object->manual_stty. If someone, whose Kung Fu is greater than mine, could point me to some source (I really have been searching all over) or a snippet that might explain how to use this functionality I would really appreciate it.

Many Thanks!
e.

In reply to Rehash of automating SSH question... by EricRCH

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.