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

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.

Replies are listed 'Best First'.
Re: Rehash of automating SSH question...
by tilly (Archbishop) on Feb 10, 2001 at 20:41 UTC
    Not what you were asking for, but here is a topical bit of news for you.
      Heh,

      The co-worker of mine who insisted that we uprade to 2.3 when it became available has been gloating uncontrolably since that was posted.

      Glad we've got it, sorry he was the smart one! :-)

      e.
Re: Rehash of automating SSH question...
by Anonymous Monk on Feb 10, 2001 at 11:15 UTC

    here is something else that you may or may not find a bit helpful: an example.

      Thanks,

      I had noticed the posting and was interested. My problem domain includes the requirement that I stick to packages already installed on the users' systems (not hard and fast but upgrading their modules is a complication I didn't want add).

      That will be on my investigate list though!

      Later,
      e.