git push origin master,提交github.com失败

轩辕剑 发布于 2014/07/23 14:43
阅读 1K+
收藏 0
每一次提交git push的时候,提示没有权限,上一次生成的公匙失效了吗,怎么回事,知道的帮忙看一下,谢谢!
加载中
0
fxhover
fxhover

1、检查github用户设置里面的公钥是否正确

2、检查项目有没有权限push

3、检查是否能用ssh和github通信:ssh -vT git@github.com

0
帖子列表
帖子列表
ssh公钥提交了吗?
帖子列表
帖子列表
回复 @轩辕剑 : "每一次提交git push的时候,提示没有权限" 报错信息是什么。
轩辕剑
轩辕剑
公匙提交了
0
Zoker
Zoker

你好歹有个错误信息啊,比如你的远程地址信息  git remote -v  又或者你的sshkey的链接信息ssh -vT git@github.com

0
降龙罗汉
降龙罗汉
提供下帐号密码,帮你看下
0
轩辕剑
轩辕剑
$ ssh -vT git@github.com
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Connecting to github.com [192.30.252.128] port 22.
debug1: Connection established.
debug1: identity file /c/Users/pc/.ssh/identity type -1
debug1: identity file /c/Users/pc/.ssh/id_rsa type 1
debug1: identity file /c/Users/pc/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version libssh-0.6.0
debug1: no match: libssh-0.6.0
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.6
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-sha1 none
debug1: kex: client->server aes128-cbc hmac-sha1 none
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug1: Host 'github.com' is known and matches the RSA host key.
debug1: Found key in /c/Users/pc/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /c/Users/pc/.ssh/identity
debug1: Offering public key: /c/Users/pc/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
Hi XXXXXX! You've successfully authenticated, but GitHub does not provide shell access.
debug1: channel 0: free: client-session, nchannels 1
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.5 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status 1
返回顶部
顶部