Skip to content

Commit

Permalink
runconfig: temporary enable ssh client ssh-rsa sha1 signature algorithm
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sgotti committed Mar 22, 2022
1 parent 56e887f commit d0acb7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/runconfig/runconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ Host $AGOLA_GIT_HOST
Port $AGOLA_GIT_PORT
StrictHostKeyChecking ${STRICT_HOST_KEY_CHECKING}
PasswordAuthentication no
IgnoreUnknown PubkeyAcceptedAlgorithms
PubkeyAcceptedAlgorithms +ssh-rsa
EOF
)
Expand Down

0 comments on commit d0acb7a

Please sign in to comment.