#591270 apt: not accepting sources using SSH keys without a passphrase

Package:
apt
Source:
apt
Description:
commandline package manager
Submitter:
Neil Williams
Date:
2010-08-01 16:39:04 UTC
Severity:
normal
#591270#5
Date:
2010-08-01 16:35:56 UTC
From:
To:
When using an ssh:// apt source, apt-get behaviour is a little awkward -
the prompt for the passphrase gets hidden in the apt output but does work,
except if the particular SSH key does not actually use a passphrase.

apt halts, asking for the passphrase and refuses to accept 'Enter',
printing a "Permission denied: please try again" error.

apt appears to be only accepting the real login password when the SSH
key passphrase is empty. (i.e. with an empty passphrase, apt falls
back to the configured login) - this will fail if the remote server
is configured to allow only SSH login.