$sftp = Net::SFTP::Foreign->new( $remnode,key_path => '/export/home/secbatch/.ssh/id_rsa', stderr_discard => 1, more => '-v', );

and added $Net::SFTP::Foreign::debug = -1;

Output is ....

20160226135158 Connecting to Remote System: sftp.bloomberg.com ... #2997 1456512718.00000 new: This is Net::SFTP::Foreign 1.81

#2997 1456512718.00000 new: Loaded from /appl/perl_5.12.3/lib/site_perl/5.12.3/Net/SFTP/Foreign.pm

#2997 1456512718.00000 new: Running on Perl v5.12.3 for solaris

#2997 1456512718.00000 new: debug set to -1

#2997 1456512718.00000 new: ~0 is 4294967295

#2997 1456512718.00000 new: Using backend Net::SFTP::Foreign::Backend::Unix 1.76_03

#2997 1456512718.00000 autodisconnect: setting disconnecting pid to 2997 and thread to 1

#2997 1456512718.00000 _init_transport: ssh cmd: ssh -i /export/home/secbatch/.ssh/id_rsa -o PreferredAuthentications=publickey -v sftp.bloomberg.com -s sftp

#2997 1456512718.00000 _queue_msg: queueing msg len: 5, code:1, id:3 ... 1

00 00 00 05 01 00 00 00 03 | .........

#2997 1456512718.00000 _get_msg: waiting for message... 1

#2997 1456512718.00000 _do_io: _do_io connected: 1

#2997 1456512718.00000 _do_io: _do_io select(-,-,-, undef)

#2997 1456512718.00000 _do_io: _do_io write queue: 9, syswrite: 9, max: 65536, $!:

00 00 00 05 01 00 00 00 03 | .........

#2997 1456512718.00000 _do_io: _do_io select(-,-,-, undef)

#2997 1456512718.00000 _do_io: _do_io read sysread: 0, total read: 0, $!:

#2997 1456512718.00000 _conn_lost: _conn_lost

#2997 1456512718.00000 _set_status: _set_status code: 7, str: Connection lost

#2997 1456512718.00000 _set_error: _set_err code: 37, str: Connection to remote server is broken

#2997 1456512718.00000 _conn_lost: _conn_lost

Connect Failed!

Connect error: Connection to remote server is broken

Connect status: Connection lost


In reply to Re^2: Net::SFTP::Foreign key_path by Vita
in thread Net::SFTP::Foreign key_path by Vita

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.