diff options
author | Jeremy T. Bouse <Jeremy.Bouse@UnderGrid.net> | 2015-10-25 22:29:43 -0400 |
---|---|---|
committer | Jeremy T. Bouse <Jeremy.Bouse@UnderGrid.net> | 2015-10-25 22:29:43 -0400 |
commit | bf855e6da326dba0c46f005eedc9f390c6c3b206 (patch) | |
tree | d8ebc8fcde66e4bd5b8e6725984fda76f21ca4eb /paramiko/ssh_exception.py | |
parent | f784a533d6e1d09e89dc254f3493b491e19c94f0 (diff) | |
download | python-paramiko-bf855e6da326dba0c46f005eedc9f390c6c3b206.tar python-paramiko-bf855e6da326dba0c46f005eedc9f390c6c3b206.tar.gz |
Imported Upstream version 1.15.3upstream/1.15.3
Diffstat (limited to 'paramiko/ssh_exception.py')
-rw-r--r-- | paramiko/ssh_exception.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/paramiko/ssh_exception.py b/paramiko/ssh_exception.py index b99e42b..e120a45 100644 --- a/paramiko/ssh_exception.py +++ b/paramiko/ssh_exception.py @@ -105,7 +105,11 @@ class BadHostKeyException (SSHException): .. versionadded:: 1.6 """ def __init__(self, hostname, got_key, expected_key): - SSHException.__init__(self, 'Host key for server %s does not match!' % hostname) + SSHException.__init__(self, + 'Host key for server %s does not match : got %s expected %s' % ( + hostname, + got_key.get_base64(), + expected_key.get_base64())) self.hostname = hostname self.key = got_key self.expected_key = expected_key |