当前位置:   article > 正文

git连接报错:Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)

git permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

  在Linux上已经安装过git(自己搭建)了,本机(windows)想连接过去,通过git bash敲了下clone命令提示没权限:

  1. $ git clone git@111.11.111.11:code.git
  2. Cloning into 'code'...
  3. The authenticity of host '111.11.111.11 (111.11.111.11)' can't be established.
  4. ECDSA key fingerprint is SHA256:7jmL7Nrr9zJ7psJd3Zcfr4UckRNOMkgwK/ae9dsCgaw.
  5. Are you sure you want to continue connecting (yes/no)? yes
  6. Warning: Permanently added '111.11.111.11' (ECDSA) to the list of known hosts.
  7. git@111.11.111.11's password:
  8. Connection closed by 111.11.111.11 port 22
  9. fatal: Could not read from remote repository.
  10. Please make sure you have the correct access rights
  11. and the repository exists.

  第一次连接失败很正常,毕竟没有设置账号信息,但第二次连接敲了自己刚设置的密码,竟然一直提示没权限


 
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小丑西瓜9/article/detail/721254
推荐阅读
相关标签
  

闽ICP备14008679号