Subject: | [Win32] No dsa authorisation for me |
As it stands, the t/Net-SSH2.t script that ships with 0.55 (and earlier) fails test 27 and terminates as shown in the attached fail.t.txt.
If I change the script (at about lines 109 & 110) to use rsa authentication then the script passes test 27 and terminates as shown in the attached pass.t.txt - and this matches the output that I got with 0.53.
NOTE: I edit t/Net-SSH2.t prior to building so that:
1) "my ($host, $user, $pass)" is set appropriately (line 16);
2) $ENV{HOME} is set to the location of my .ssh folder.
$ENV{HOME} is unset on my Windows machine, and I think that's the usual thing on that OS. Hence the need for step 2)
You'll note that, in both fail.t.txt and pass.t.txt there's also a deprecation warning in relation to test 27.
Cheers,
Rob
Subject: | fail.t.txt |
ok 26 - not authenticated yet
Using the key 'password' to refer to a passphrase is deprecated. Use 'passphrase
' instead at t/Net-SSH2.t line 109.
not ok 27 - authenticated via:
# Failed test 'authenticated via: '
# at t/Net-SSH2.t line 113.
ok 28 # skip - failed to authenticate with server
ok 29 # skip - failed to authenticate with server
ok 30 # skip - failed to authenticate with server
ok 31 # skip - failed to authenticate with server
ok 32 # skip - failed to authenticate with server
ok 33 # skip - failed to authenticate with server
ok 34 # skip - failed to authenticate with server
ok 35 # skip - failed to authenticate with server
ok 36 # skip - failed to authenticate with server
ok 37 # skip - failed to authenticate with server
ok 38 # skip - failed to authenticate with server
ok 39 # skip - failed to authenticate with server
ok 40 # skip - failed to authenticate with server
ok 41 # skip - failed to authenticate with server
ok 42 # skip - failed to authenticate with server
ok 43 # skip - failed to authenticate with server
ok 44 # skip - failed to authenticate with server
ok 45 # skip - failed to authenticate with server
ok 46 # skip - failed to authenticate with server
ok 47 # skip - failed to authenticate with server
ok 48 # skip - failed to authenticate with server
ok 49 # skip - failed to authenticate with server
ok 50 # skip - failed to authenticate with server
ok 51 # skip - failed to authenticate with server
ok 52 # skip - failed to authenticate with server
ok 53 # skip - failed to authenticate with server
ok 54 # skip - failed to authenticate with server
ok 55 # skip - failed to authenticate with server
ok 56 # skip - failed to authenticate with server
ok 57 # skip - failed to authenticate with server
ok 58 # skip - failed to authenticate with server
ok 59 # skip - failed to authenticate with server
ok 60 # skip - failed to authenticate with server
ok 61 # skip - failed to authenticate with server
ok 62 # skip - failed to authenticate with server
ok 63 # skip - failed to authenticate with server
ok 64 # skip - failed to authenticate with server
# Looks like you planned 73 tests but ran 64.
# Looks like you failed 1 test of 64 run.
Subject: | pass.t.txt |
ok 26 - not authenticated yet
Using the key 'password' to refer to a passphrase is deprecated. Use 'passphrase
' instead at t/Net-SSH2.t line 109.
ok 27 - authenticated via: publickey
ok 28 - authenticated successfully
ok 29 - new channel isa Net::SSH2::Channel
ok 30 - set blocking
ok 31 - not at EOF
ok 32 - normal extended data handling
ok 33 - merge extended data
ok 34 - empty setenv
ok 35 - set environment variables
ok 36 - verify session
ok 37 - set disconnect callback
ok 38 - SFTP session isa Net::SSH2::SFTP
ok 39 - verify session
ok 40 - create directory net_ssh2_6868
ok 41 - stat directory
ok 42 - type is directory
ok 43 - directory name matches
ok 44 - put t/Net-SSH2.t to remote
ok 45 - get net_ssh2_6868/Net-SSH2.t from remote
ok 46 - files match
ok 47 - unlink non-existant file fails
ok 48 - got LIBSSH2_FX_NO_SUCH_FILE error
ok 49 - rename net_ssh2_6868/Net-SSH2.t -> net_ssh2_6868/Net-SSH2.t.renamed
ok 50 - stat net_ssh2_6868/Net-SSH2.t.renamed
ok 51 - stat filename matches
ok 52 - stat filesize matches
ok 53 - opened file isa Net::SSH2::File
ok 54 - compare stat and fstat
ok 55 - compare fstat % and %$
ok 56 - opened directory isa Net::SSH2::Dir
ok 57 - found net_ssh2_6868/Net-SSH2.t.renamed
ok 58 - opened file isa Net::SSH2::File
ok 59 - read '\# THIS LINE WILL BE READ BY A TEST BELOW'
ok 60 - unlink net_ssh2_6868/Net-SSH2.t.renamed
ok 61 - remove directory net_ssh2_6868
ok 62 - close SFTP session
ok 63 - exec 'ls -d /'
ok 64 - got poll response
ok 65 - got input event
ok 66 - got result '/'
ok 67 - no more lines
ok 68 # skip - public key infrastructure not present
ok 69 # skip - public key infrastructure not present
ok 70 # skip - public key infrastructure not present
ok 71 # skip - public key infrastructure not present
ok 72 - close channel
ok 73 - sent disconnect message