Passphrase to decrypt, not password

While it is true that the exception called is "PasswordRequiredException", returning a message of needing a "passphrase" instead will clue the reader in that their key's password needs to go into the "Passphrase" box
pull/83/head
MineRobber___T 2019-09-06 13:30:05 -04:00 committed by GitHub
parent d496b4ff87
commit dc8016d21b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ class PrivateKey(object):
try:
return pkeycls.from_private_key(self.iostr, password=password)
except paramiko.PasswordRequiredException:
raise InvalidValueError('Need a password to decrypt the key.')
raise InvalidValueError('Need a passphrase to decrypt the key.')
except paramiko.SSHException as exc:
logging.error(str(exc))
msg = 'Invalid key'