gitblit icon indicating copy to clipboard operation
gitblit copied to clipboard

Error when using ssh clone repository

Open BoyceLig opened this issue 1 year ago • 1 comments

本地客户端提示:(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: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected],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)

BoyceLig avatar Jun 09 '23 09:06 BoyceLig