mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-27 12:42:12 +01:00
Merge pull request #1079 from dmach/sshkey_ecdsa
Update list of considered file names for ssh key autodetection
This commit is contained in:
commit
33e994290e
@ -644,7 +644,7 @@ def _build_opener(apiurl):
|
|||||||
if fingerprint in keys_in_home_ssh:
|
if fingerprint in keys_in_home_ssh:
|
||||||
return keys_in_home_ssh[fingerprint]
|
return keys_in_home_ssh[fingerprint]
|
||||||
sshdir = os.path.expanduser('~/.ssh')
|
sshdir = os.path.expanduser('~/.ssh')
|
||||||
keyfiles = ('id_ed25519', 'id_rsa')
|
keyfiles = ('id_ed25519', 'id_ed25519_sk', 'id_rsa', 'id_ecdsa', 'id_ecdsa_sk', 'id_dsa')
|
||||||
for keyfile in keyfiles:
|
for keyfile in keyfiles:
|
||||||
keyfile_path = os.path.join(sshdir, keyfile)
|
keyfile_path = os.path.join(sshdir, keyfile)
|
||||||
if os.path.isfile(keyfile_path):
|
if os.path.isfile(keyfile_path):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user