Update ssh config to work with recent OpenSSH
authorMichael Laß <lass@mail.uni-paderborn.de>
Sat, 2 Apr 2022 13:39:35 +0000 (15:39 +0200)
committerMichael Laß <lass@mail.uni-paderborn.de>
Sat, 2 Apr 2022 13:39:35 +0000 (15:39 +0200)
By default, rsa keys are only supported in recent OpenSSH clients when
using SHA2 hashing algorithms (e.g., rsa-sha2-512 or rsa-sha2-256).
However, Gerrit does not support these.

Adding an ed25519 public key to the user settings in Gerrit does not
work either, so for now we must suggest sticking to rsa keys and
explicitly allowing the old deprecated algorithms in the SSH config.

devel/GitDevelopers.mdwn

index ab2075e..e34f6b7 100644 (file)
@@ -236,6 +236,8 @@ To make things easier, set up OpenSSH so that it knows about the defaults for th
     User <Username>
     IdentityFile ~/.ssh/id_rsa
     Port 29418
+    HostKeyAlgorithms +ssh-rsa
+    PubkeyAcceptedAlgorithms +ssh-rsa
 
 (where Username is the username you noted down from the 'Profile' page)