Wow that's a lot to take in.

This is just a quick reply on part of what you said.

If I use shell() I see the "welcome message" and command prompt. I can type stuff and it echoes to screen but that's it. I don't see any responses from the server.

I was trying the exit command simply as that's the simplest command I have and should just disconnect and end the Perl script.

I've not tried Net::SSH and was hoping not to as latter on I may need to run a command several (hundred) times with different parameters. Net::SSH::Perl lets me keep the link open and so save time rather than reconnect for each iteration.

I'll report back further one I find out what I can find out.

Thanks again for the pointers.


In reply to Re^4: net::ssh::Perl connecting to f-secure ssh server by tweetiepooh
in thread net::ssh::Perl connecting to f-secure ssh server by tweetiepooh

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.