Subject: | SSH.pm doesn't allow for cases where no password is needed |
When using public/private key authentication, it is possible that no
password or passphrase is needed, but SSH.pm assumes that a password is
always required.
I've attached an SSH.pm with a fix, and a diff file for the fix as well.
Subject: | diff.txt |
81c81
< (undef, $match) = $self->waitfor($self->pb->fetch('pass_prompt'))
---
> $self->waitfor($self->pb->fetch('pass_prompt'))
85,91c85,87
< # Check that we have a password prompt before sending the password.
< # We may have connected using public/private key authentication.
< if ($match =~ eval 'qr'. $self->pb->fetch('pass_prompt')) {
< # cannot cmd() here because sometimes there's a "helpful"
< # login banner
< $self->print($args{password});
< }
---
> # cannot cmd() here because sometimes there's a "helpful"
> # login banner
> $self->print($args{password});
Subject: | SSH.pm.gz |
Message body not shown because it is not plain text.