Skip to content

Commit b1c64c9

Browse files
committed
runconfig: temporary enable ssh client ssh-rsa sha1 signature algorithm
Newer versions of openssh client disables ssh-rsa sha1 public key signature algorithm. Unfortunately gitea ssh server requires this signature algorithm instead of using the stronger rsa-sha2-256/rsa-sha2-512 (see go-gitea/gitea#17798) So, as a temporary workaround, force enable on the ssh client the ssh-rsa sha1 signature algorithm.
1 parent 56e887f commit b1c64c9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/runconfig/runconfig.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ Host $AGOLA_GIT_HOST
109109
Port $AGOLA_GIT_PORT
110110
StrictHostKeyChecking ${STRICT_HOST_KEY_CHECKING}
111111
PasswordAuthentication no
112+
113+
IgnoreUnknown PubkeyAcceptedKeyTypes
114+
IgnoreUnknown PubkeyAcceptedAlgorithms
115+
PubkeyAcceptedKeyTypes +ssh-rsa
116+
PubkeyAcceptedAlgorithms +ssh-rsa
112117
EOF
113118
)
114119

0 commit comments

Comments
 (0)