使用git clone 项目时报错如下

ssh_dispatch_run_fatal: Connection to xxx.xxx.xx.xx port xxxx: incorrect signature
fatal: Could not read from remote repository.

解决方案

vim /etc/ssh/ssh_config

添加如下一行即可

HostKeyAlgorithms ssh-rsa

或在$user\.ssh\config下添加

HostKeyAlgorithms ecdsa-sha2-nistp521,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp384,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512,rsa-sha2-256,ssh-rsa
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐