gitblit-org / gitblit

pure java git solution
http://gitblit.com
Apache License 2.0
2.27k stars 670 forks source link

Error when using ssh clone repository #1445

Open BoyceLig opened 1 year ago

BoyceLig commented 1 year ago

本地客户端提示:(Local Client Alert)

Unable to negotiate with 10.67.146.182 port 29418: no matching host key type found. Their offer: ssh-rsa,ssh-dss
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

服务端log提示:(Server-side log alert)

2023-06-09 17:41:53 [INFO ] creating ssh session from /10.67.146.182:7129
2023-06-09 17:41:54 [WARN ] exceptionCaught(SshServerSession[null@/10.67.146.182:7129])[state=Opened] IllegalStateException: Unable to negotiate key exchange for server host key algorithms (client: ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256 / server: ssh-rsa,ssh-dss)
2023-06-09 17:41:54 [INFO ] closed ssh session from /10.67.146.182:7129

使用的ssh key为rsa的 (The ssh key used is rsa) image image 服务端也添加ssh公匙 (Add the ssh public key on the server side as well)

(Edit: Added translation)

flaix commented 9 months ago

Is this the same issue as in #1419 ?