mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #12676 from garethgreenaway/ssh_host_key_fixes
Add missing ECDSA, ED25519 ssh key file types.
This commit is contained in:
commit
adac7ba7e7
@ -846,13 +846,13 @@ def user_keys(user=None, pubfile=None, prvfile=None):
|
|||||||
userKeys.append(pubfile)
|
userKeys.append(pubfile)
|
||||||
else:
|
else:
|
||||||
# Add the default public keys
|
# Add the default public keys
|
||||||
userKeys += ['id_rsa.pub', 'id_dsa.pub']
|
userKeys += ['id_rsa.pub', 'id_dsa.pub', 'id_ecdsa.pub', 'id_ed25519.pub']
|
||||||
|
|
||||||
if prvfile:
|
if prvfile:
|
||||||
userKeys.append(prvfile)
|
userKeys.append(prvfile)
|
||||||
else:
|
else:
|
||||||
# Add the default private keys
|
# Add the default private keys
|
||||||
userKeys += ['id_rsa', 'id_dsa']
|
userKeys += ['id_rsa', 'id_dsa', 'id_ecdsa', 'id_ed25519']
|
||||||
|
|
||||||
for key in userKeys:
|
for key in userKeys:
|
||||||
if key.startswith('/'):
|
if key.startswith('/'):
|
||||||
|
Loading…
Reference in New Issue
Block a user