Skip to content

Commit d0acb7a

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 d0acb7a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/runconfig/runconfig.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ Host $AGOLA_GIT_HOST
109109
Port $AGOLA_GIT_PORT
110110
StrictHostKeyChecking ${STRICT_HOST_KEY_CHECKING}
111111
PasswordAuthentication no
112+
113+
IgnoreUnknown PubkeyAcceptedAlgorithms
114+
PubkeyAcceptedAlgorithms +ssh-rsa
112115
EOF
113116
)
114117

0 commit comments

Comments
 (0)