diff --git a/salt/modules/ssh.py b/salt/modules/ssh.py index a803f14115fb..a928c00eb026 100644 --- a/salt/modules/ssh.py +++ b/salt/modules/ssh.py @@ -262,6 +262,7 @@ def check_key(user, key, enc, comment, options, config='.ssh/authorized_keys'): salt '*' ssh.check_key ''' + enc = _refine_enc(enc) current = auth_keys(user, config) nline = _format_auth_line(key, enc, comment, options) if key in current: