Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using ssh clone repository #1445

Open
BoyceLig opened this issue Jun 9, 2023 · 1 comment
Open

Error when using ssh clone repository #1445

BoyceLig opened this issue Jun 9, 2023 · 1 comment

Comments

@BoyceLig
Copy link

BoyceLig commented Jun 9, 2023

本地客户端提示:(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)

@flaix flaix changed the title 使用ssh clone仓库时报错,无法获取 Error when using ssh clone repository Oct 9, 2023
@flaix
Copy link
Member

flaix commented Oct 9, 2023

Is this the same issue as in #1419 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants