#25089 1363077870.00000 _do_io: _do_io select(-,-,-, undef)
#25089 1363077870.00000 _do_io: _do_io read sysread: 27, total read: 2
+8, $!:
50 6c 65 61 73 65 20 74 79 70 65 20 27 79 65 73 27 20 6f 72 20 27 6e 6
+f 27 3a 20 | Please type 'yes' or 'no':
#25089 1363077870.00000 _set_status: _set_status code: 5, str: Bad mes
+sage
First off, you haven't shown us any Perl code for us to see what you are attempting to do.
That said: I have quoted some of the trace that you supplied and in there is the smoking gun so to speak. It would appear that serverB is not in the known_hosts file for the userid that is running the script. Very simple fix:
- Log in as the userid that is running the script
- SSH from that userid to hostB as the userid SFTP is logging in as.
- When SSH asks you to accept the key say "yes."
That will cause the known_hosts file to be populated with the public key of the remote host
Works fine... lasta a long time...
Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.