远程提交代码错误处理

仓库提交错误信息

15:24   Push failed
            Unable to negotiate with 47.98.49.44 port 22: no matching host key type found. Their offer: ssh-rsa
            Could not read from remote repository.
            
            Please make sure you have the correct access rights
            and the repository exists.
            Show details in console

解决办法:
在生成公钥的~/.ssh文件夹下,新建一个config文件(config文件没有后缀),文件中添加如下内容:

Host *
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa

然后保存,重新提交代码即可.

你可能感兴趣的:(远程提交代码错误处理)