Skip Menu |
 

This queue is for tickets about the Net-SSH-Perl CPAN distribution.

Report information
The Basics
Id: 41877
Status: resolved
Priority: 0/
Queue: Net-SSH-Perl

People
Owner: Nobody in particular
Requestors: toddr [...] cpanel.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.33
Fixed in: (no value)



Subject: _auth_identity prompting for key password when file does not exist.
Download (untitled) / with headers
text/plain 493b
in my environment, ~/.ssh/id_dsa does not exist. However if I turn on debug, I get this: host: Trying pubkey authentication with key file '/home/username/.ssh/id_dsa' Enter passphrase for keyfile '/home/username/.ssh/id_dsa': host: Loading private key failed. I'm having a little trouble following the code, but I think you need an or in this line $key = Net::SSH::Perl::Key->read_private_pem($auth_file, '', \$ssh->{datafellows}); or you need to alter NSP::Key->read_private_pem
From: todd.e.rinaldo [...] jpmorgan.com
Download (untitled) / with headers
text/plain 433b
I'm having to fix this in my own code. I can't tell if there's a missing check deeper in the stack, but my solution will be to add in: the below return 0 line. sub _auth_identity { my $auth = shift; my($auth_file) = @_; my $ssh = $auth->{ssh}; my($packet); + return 0 if(! -e $auth_file); # Skip files if not present. my($key); $ssh->debug("Trying pubkey authentication with key file '$auth_file'");
From: todd.e.rinaldo [...] jpmorgan.com
probably ought to also put in a -z check also. Why read an empty file?
Download (untitled) / with headers
text/plain 122b
This was fixed in v1.34. Steffen -- Steffen Schwigon <ss5@renormalist.net> Dresden Perl Mongers <http://dresden-pm.org/>


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.