Skip to content

Commit

Permalink
Passphrase to decrypt, not password
Browse files Browse the repository at this point in the history
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
  • Loading branch information
MineRobber9000 authored Sep 6, 2019
1 parent d496b4f commit dc8016d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webssh/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def get_pkey_obj(self):
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'
Expand Down

0 comments on commit dc8016d

Please sign in to comment.