Mac git push偶现无法提交代码。


Connection closed by 104.xxx.xxx.x port 22
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists

重新删除ssh 然后重新生成 按照全部步骤走走一遍  不需要设置代理。

就重新生成ssh并添加。但是切记 如果没有密码要完成步骤2

按照官方文档完成第二步

Step 2. Add the key to the ssh-agent

If you don't want to type your password each time you use the key, you'll need to add it to the ssh-agent.

  1. To start the agent, run the following:

    $ eval $(ssh-agent)
    Agent pid 9700

  2. Enter ssh-add followed by the path to the private key file:

    $ ssh-add ~/.ssh/<private_key_file>

Set up an SSH key | Bitbucket Cloud | Atlassian Support

是的。。就Bitbucket需要完成第二步骤 类似gitee、git 我就没完成这两部也可以正常提交

猜你喜欢

转载自blog.csdn.net/mp624183768/article/details/127387598