My SSH key(s) refuses to work on my new KDE neon install. I tried reinstalling the keys and finally found the problem in debug mode. The key file is not used because it has a custom name. This is surprising because it worked fine on Ubuntu 18.04 in the past years, but on the new KDE neon it has this bug.
The procedure is the usual (already worked on Ubuntu 18.04)
-generate key pair on admin side ssh-keygen -b 4096
(I assign a custom name to differentiate servers)
-add the new key to the server ssh-copy-id -i ~/.ssh/custom_name.pub [email protected]
Everything is fine, no errors, key is confirmed in ~/.ssh/authorized_keys
on the server side
The problem seems to be that ssh does not try the custom name key when connecting:
debug1: Trying private key: /home/gerge/.ssh/id_rsa
debug1: Trying private key: /home/gerge/.ssh/id_ecdsa
debug1: Trying private key: /home/gerge/.ssh/id_ecdsa_sk
debug1: Trying private key: /home/gerge/.ssh/id_ed25519
debug1: Trying private key: /home/gerge/.ssh/id_ed25519_sk
debug1: Trying private key: /home/gerge/.ssh/id_xmss
debug1: Trying private key: /home/gerge/.ssh/id_dsa
If the key is called id_rsa
then it works, but I need custom names because there are many keys. Any idea?
local admin system: KDE neon Linux HOSTNAME 5.15.0-56-generic #62-Ubuntu SMP Tue Nov 22 19:54:14 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux