I'm running sftp from a Solaris server to a Windows server.
The manual session is working. But when I use Net::SSH::Perl, the session hangs at "Waiting for NEWKEYS message.";
server1.com: Reading configuration data /export/home/xxxxx/.ssh/config
server1.com: Reading configuration data /etc/ssh_config
server1.com: Connecting to sftp.docufree.com, port 22.
server1.com: Remote version string: SSH-2.0-2.0
server1.com: Remote protocol version 2.0, remote software version 2.0
server1.com: Net::SSH::Perl Version 1.30, protocol version 2.0.
' matches pattern '^2\.'. match: '2.0
server1.com: Connection established.
server1.com: Sent key-exchange init (KEXINIT), wait response.
server1.com: Algorithms, c->s: 3des-cbc hmac-sha1 none
server1.com: Algorithms, s->c: 3des-cbc hmac-sha1 none
server1.com: Entering Diffie-Hellman Group 1 key exchange.
server1.com: Sent DH public key, waiting for reply.
server1.com: Received host key, type 'ssh-dss'.
server1.com: Host 'sftp.xxxx.com' is known and matches the host key.
server1.com: Computing shared secret key.
server1.com: Verifying server signature.
server1.com: Waiting for NEWKEYS message.
I know the next line should be "Enabling incoming encryption/MAC/compression". So maybe encryption is an issue here? I know the remote Windows server only only support AES (128 | 256). What encryption Net::SSH::Perl is using? 3des?
I just can not figure out why it hangs at "Waiting for NEWKEYS message"? What is the NEWKEYS message?
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.