scm-manager / scm-ssh-plugin

SSH support for SCM-Manager
GNU Affero General Public License v3.0
0 stars 0 forks source link

No access with Ubuntu 22.04 using authorized keys #44

Closed pfeuffer closed 2 years ago

pfeuffer commented 2 years ago

Issue description

With Ubuntu 22.04 (and probably other latest distributions), the access to Git repositories in SCM-Manager using authorized keys may fail, and Git will ask for username and password, again.

The reason for this is a deprecation of the RSA SHA-1 hash algorithm. The ssh plugin does not yet support other algorithms and therefore the connection fails (ssh logs send_pubkey_test: no mutual signature algorithm).

Workaround

As a workaround for this, the RSA algorithm can be whitelisted again by adding the following line to /etc/ssh/ssh_config:

PubkeyAcceptedKeyTypes +ssh-rsa

This may also be restricted to the domain of the SCM-Manager server:

Host: your.scm-server.org
    PubkeyAcceptedKeyTypes +ssh-rsa