Git提示: coding构建时,提示报错
stdout:
[2022-12-14 15:19:28] stderr: Unable to negotiate with 192.168.100.153 port 22: no matching host key type found. Their offer: ssh-rsa
[2022-12-14 15:19:28] fatal: Could not read from remote repository.
[2022-12-14 15:19:28]
解决:
参考:https://www.jianshu.com/p/a17c1f904ffd
在Git的安装目录下 Git > etc > ssh 文件夹下找到 ssh_config 文件 。
在文件末尾添加一下代码。
添加以下代码,注意不要缩进
Host *
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
网友评论