Git/SVN 仓库托管 git 无法推送

秋庭里香 · 2019年11月25日 · 最后由 yiwei@coding.net 回复于 2019年11月27日 · 55 次阅读
[joshua> [ttys000>
├ [~/Documents/investment_note>
└ [0> [%> git remote -v
origin  git@git.coding.net:chinanoahli/investment_note.git (fetch)
origin  git@git.coding.net:chinanoahli/investment_note.git (push)[joshua> [ttys000>
├ [~/Documents/investment_note>
└ [0> [%> git push
git@git.coding.net: Permission denied (publickey).
fatal: Could not read from remote repository.

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

已经确认公钥和仓库设置都没有问题,而且上一次推送仅仅是4小时前,再次推送就一直提示失败,提示无法读取远程仓库

共收到 4 条回复
[joshua> [ttys000>
├ [~/Documents/investment_note>
└ [129> [%> ssh -v git@git.coding.net
OpenSSH_7.9p1, LibreSSL 2.7.3
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug1: Connecting to git.coding.net [118.126.70.252] port 22.
debug1: Connection established.
debug1: identity file /Users/joshua/.ssh/id_rsa type 0
debug1: identity file /Users/joshua/.ssh/id_rsa-cert type -1
debug1: identity file /Users/joshua/.ssh/id_dsa type -1
debug1: identity file /Users/joshua/.ssh/id_dsa-cert type -1
debug1: identity file /Users/joshua/.ssh/id_ecdsa type -1
debug1: identity file /Users/joshua/.ssh/id_ecdsa-cert type -1
debug1: identity file /Users/joshua/.ssh/id_ed25519 type -1
debug1: identity file /Users/joshua/.ssh/id_ed25519-cert type -1
debug1: identity file /Users/joshua/.ssh/id_xmss type -1
debug1: identity file /Users/joshua/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.9
debug1: Remote protocol version 2.0, remote software version Go
debug1: no match: Go
debug1: Authenticating to git.coding.net:22 as 'git'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256@libssh.org
debug1: kex: host key algorithm: ssh-rsa
debug1: kex: server->client cipher: aes128-ctr MAC: hmac-sha2-256-etm@openssh.com compression: none
debug1: kex: client->server cipher: aes128-ctr MAC: hmac-sha2-256-etm@openssh.com compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ssh-rsa SHA256:jok3FH7q5LJ6qvE7iPNehBgXRw51ErE77S0Dn+Vg/Ik
debug1: Host 'git.coding.net' is known and matches the RSA host key.
debug1: Found key in /Users/joshua/.ssh/known_hosts:1
debug1: rekey after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 4294967296 blocks
debug1: Will attempt key: /Users/joshua/.ssh/id_rsa RSA SHA256:dRh1f+cJilspC5/wQlKoUsXxKv8Ne6clNlGFz4Ob2tY
debug1: Will attempt key: /Users/joshua/.ssh/id_dsa
debug1: Will attempt key: /Users/joshua/.ssh/id_ecdsa
debug1: Will attempt key: /Users/joshua/.ssh/id_ed25519
debug1: Will attempt key: /Users/joshua/.ssh/id_xmss
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /Users/joshua/.ssh/id_rsa RSA SHA256:dRh1f+cJilspC5/wQlKoUsXxKv8Ne6clNlGFz4Ob2tY
debug1: Authentications that can continue: publickey
debug1: Trying private key: /Users/joshua/.ssh/id_dsa
debug1: Trying private key: /Users/joshua/.ssh/id_ecdsa
debug1: Trying private key: /Users/joshua/.ssh/id_ed25519
debug1: Trying private key: /Users/joshua/.ssh/id_xmss
debug1: No more authentication methods to try.
git@git.coding.net: Permission denied (publickey).

ssh的输出

@秋庭里香 上午好,很荣幸为您服务。您用的是阿里云的服务器吗?

不是,普通的联通adsl宽带

@秋庭里香 我们可能需要更加详细的信息,请您直接添加我们下方专属客服的微信,有任何的问题可以随时联系我们,再次感谢您的咨询。

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
相关话题