Greeting Monks!

I'm having a problem with the above, on one server out of three. That server is running mac osx 10.7.5. The local server is mac osx 10.6.8

I can manually from the command line both ssh, and scp a file.

On the remote server, I've reviewed permissions, removed and reinstated the keys etc. etc.

Any and all help appreciated!

Thanks!

These are the outputs from the ssh and scp.

Uncaught exception from user code: SSHAuthenticationError Login timed out. The input stream curre +ntly has the contents bellow: Last login: Wed Oct 7 13:10:19 2015 fr +om xxxx-idx-dev1.xxxx.xxxxxx.com xxxx-idx-dev3:~ user$ at /System/Library/Perl/Extras/5.10.0/Expect.pm + line 828. at /Library/Perl/5.10.0/Net/SSH/Expect.pm line 209. Net::SSH::Expect::__ANON__('ARRAY(0x100eb2730)') called at /Sy +stem/Library/Perl/Extras/5.10.0/Expect.pm line 828 Expect::_multi_expect(1, 'ARRAY(0x100eb2a60)', 'ARRAY(0x100eb2 +b68)') called at /System/Library/Perl/Extras/5.10.0/Expect.pm line 56 +5 Expect::expect('Expect=GLOB(0x100eb25c8)', 1, 'ARRAY(0x100eb2c +a0)', 'ARRAY(0x100eb2e18)', 'ARRAY(0x100eb20e8)', 'ARRAY(0x100e7d548) +', 'ARRAY(0x100eb26b8)') called at /Library/Perl/5.10.0/Net/SSH/Expec +t.pm line 580 </p> <p> Net::SSH::Expect::_sec_expect('Net::SSH::Expect=HASH(0x100e7d4 +a0)', 1, 'ARRAY(0x100eb2ca0)', 'ARRAY(0x100eb2e18)', 'ARRAY(0x100eb20 +e8)', 'ARRAY(0x100e7d548)', 'ARRAY(0x100eb26b8)') called at /Library/ +Perl/5.10.0/Net/SSH/Expect.pm line 213 </p> <p> Net::SSH::Expect::login('Net::SSH::Expect=HASH(0x100e7d4a0)') + called at ./deploy_cluster.pl line 200 main::ssh_login('xxxx-idx-dev3.xxxx.xxxxxx.com', 'user', 'pass +word') called at ./deploy_cluster.pl line 154 </p> <p> main::copy_exist_to_old_all_servers('ARRAY(0x100e7d440)', ' +ARRAY(0x100eaa830)') called at ./deploy_cluster.pl line 53 </p> <p> Uncaught exception from user code: Problem performing scp: Executing: program /usr/bin/ssh host x +xxx-idx-dev3.xxxx.xxxx.com, user user, command scp -v -t /Users/user/ +Project/scripts/perl_scripts/xxxx_flush_cache_mbr.pl.new OpenSSH_5.2p1, OpenSSL 0.9.8y 5 Feb 2013 Sending file modes: C0755 13728 xxxx_flush_cache_mbr.pl Sink: C0755 13728 xxxx_flush_cache_mbr.pl at ./deploy_cluster.pl line 86. at /Library/Perl/5.10.0/Net/SCP/Expect.pm line 224.
Net::SCP::Expect::scp('Net::SCP::Expect=HASH(0x100eaa9e0)', '/Users/us +er/cvs/xxxx/Project/xxxx/xxxx/rest_...', '/Users/user/Project/scripts +/perl_scripts/xxxx_...') called at ./deploy_cluster.pl line 86 </p> <p> main::scp_to_remote_new_all_servers('ARRAY(0x100e7d488)', ' +ARRAY(0x100eaa878)') called at ./deploy_cluster.pl line 55

In reply to net::ssh::expect net::scp::expect problem by bigswifty00000

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.