From 9786aafa51137bc96fed97bb155a39fe81d0d44f Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Mon, 25 Jul 2022 17:50:16 +0200 Subject: [PATCH] Update list of considered file names for ssh key autodetection The file names come from ssh(1) man page. --- osc/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/conf.py b/osc/conf.py index 346c096d..882d06d0 100644 --- a/osc/conf.py +++ b/osc/conf.py @@ -644,7 +644,7 @@ def _build_opener(apiurl): if fingerprint in keys_in_home_ssh: return keys_in_home_ssh[fingerprint] 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: keyfile_path = os.path.join(sshdir, keyfile) if os.path.isfile(keyfile_path):