summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--paramiko/hostkeys.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/paramiko/hostkeys.py b/paramiko/hostkeys.py
index 072a393a..801bd50b 100644
--- a/paramiko/hostkeys.py
+++ b/paramiko/hostkeys.py
@@ -317,6 +317,7 @@ class HostKeyEntry:
# Decide what kind of key we're looking at and create an object
# to hold it accordingly.
try:
+ key = b(key)
if keytype == 'ssh-rsa':
key = RSAKey(data=decodebytes(key))
elif keytype == 'ssh-dss':