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)
|
||||
else:
|
||||
# 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:
|
||||
userKeys.append(prvfile)
|
||||
else:
|
||||
# Add the default private keys
|
||||
userKeys += ['id_rsa', 'id_dsa']
|
||||
userKeys += ['id_rsa', 'id_dsa', 'id_ecdsa', 'id_ed25519']
|
||||
|
||||
for key in userKeys:
|
||||
if key.startswith('/'):
|
||||
|
Loading…
Reference in New Issue
Block a user