no matching host key type found. Their offer: ssh-rsa fatal: Could not read from remote repository.
时间: 2023-10-19 08:28:54 浏览: 163
码云出现错误git@gitee.com: Permission denied (publickey). fatal: Could not read from remote repository. P
5星 · 资源好评率100%
It seems that you are facing an issue with SSH authentication. The error message "no matching host key type found" suggests that the SSH server's host key type is not supported by your SSH client.
To resolve this issue, you can try the following steps:
1. Specify a preferred host key algorithm in your SSH configuration file (`~/.ssh/config`). Add the following line and save the file:
```
HostkeyAlgorithms +ssh-rsa
```
2. If the above step doesn't work, you can try adding other supported host key algorithms to the configuration file. For example:
```
HostkeyAlgorithms +ssh-rsa,ssh-ed25519,ecdsa-sha2-nistp256
```
3. If you have access to the server, you can check its SSH server configuration and ensure that it supports the desired host key algorithm(s). Consult the server documentation for instructions on how to modify the SSH server configuration.
Additionally, the error message "fatal: Could not read from remote repository" indicates that there might be an issue with accessing the remote repository. Ensure that you have the necessary permissions and that the repository exists.
If the issue persists, please provide more details about your setup and the steps you have already tried.
阅读全文