I decided to give net::sftp a try again. I'm getting a little farther, but still not quite there. It seems to hang whenever I try to connect so a site. This is the code: *************************
use Net::SFTP; my %args = ( user => 'ME', debug => '1', password => 'PASS' ); my $sftp = Net::SFTP->new('localhost', %args); print "Connected.....\n"; exit(0); } else { warn "auth failed.\n"; }
It hangs, this is the response I get.
hipaatest: Reading configuration data /dev/fs/D/home/hipaa/.ssh/config hipaatest: Reading configuration data /etc/ssh_config hipaatest: Connecting to localhost, port 22. hipaatest: Remote version string: SSH-1.99-OpenSSH_4.6 hipaatest: Remote protocol version 1.99, remote software version OpenS +SH_4.6 Math::BigInt: couldn't load specified math lib(s), fallback to Math::B +igInt::Fas tCalc at C:/Perl/site/lib/Crypt/DH.pm line 6 hipaatest: Net::SSH::Perl Version 1.30, protocol version 2.0. hipaatest: No compat match: OpenSSH_4.6. hipaatest: Connection established. hipaatest: Sent key-exchange init (KEXINIT), wait response. hipaatest: Algorithms, c->s: 3des-cbc hmac-sha1 none hipaatest: Algorithms, s->c: 3des-cbc hmac-sha1 none hipaatest: Entering Diffie-Hellman Group 1 key exchange. hipaatest: Sent DH public key, waiting for reply. Math::BigInt: couldn't load specified math lib(s), fallback to Math::B +igInt::Fas tCalc at C:/Perl/site/lib/Crypt/DSA/KeyChain.pm line 6 Math::BigInt: couldn't load specified math lib(s), fallback to Math::B +igInt::Fas tCalc at C:/Perl/site/lib/Crypt/DSA/Key.pm line 6 Math::BigInt: couldn't load specified math lib(s), fallback to Math::B +igInt::Fas tCalc at C:/Perl/site/lib/Crypt/DSA/Util.pm line 6 hipaatest: Received host key, type 'ssh-dss'. hipaatest: Host 'localhost' is known and matches the host key. hipaatest: Computing shared secret key. hipaatest: Verifying server signature. hipaatest: Waiting for NEWKEYS message. hipaatest: Enabling incoming encryption/MAC/compression. hipaatest: Send NEWKEYS, enable outgoing encryption/MAC/compression. hipaatest: Sending request for user-authentication service. hipaatest: Service accepted: ssh-userauth. hipaatest: Trying empty user-authentication request. hipaatest: Authentication methods that can continue: publickey,passwor +d,hostbase d. hipaatest: Next method to try is publickey. hipaatest: Next method to try is password. hipaatest: Trying password authentication. hipaatest: Login completed, opening dummy shell channel. hipaatest: channel 0: new [client-session] hipaatest: Requesting channel_open for channel 0. hipaatest: channel 0: open confirm rwindow 0 rmax 32768 hipaatest: channel 1: new [client-session] hipaatest: Requesting channel_open for channel 1. hipaatest: Sending subsystem: sftp hipaatest: Requesting service subsystem on channel 1. hipaatest: channel 1: open confirm rwindow 0 rmax 32768 hipaatest: sftp: Sending SSH2_FXP_INIT
Any help would be greatly appreciated. Larry

In reply to problem with net::sftp by llass61

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.