git.oschina.net使用问题 

aromer 发布于 2015/08/24 15:00
阅读 3K+
收藏 0
liu@aromer ~ $ ssh -vT git@git.oschina.net
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to git.oschina.net [180.97.163.93] port 22.
debug1: Connection established.
debug1: identity file /home/liu/.ssh/id_rsa type 1
debug1: identity file /home/liu/.ssh/id_rsa-cert type -1
debug1: identity file /home/liu/.ssh/id_dsa type -1
debug1: identity file /home/liu/.ssh/id_dsa-cert type -1
debug1: identity file /home/liu/.ssh/id_ecdsa type -1
debug1: identity file /home/liu/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/liu/.ssh/id_ed25519 type -1
debug1: identity file /home/liu/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.3
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.2
debug1: match: OpenSSH_6.2 pat OpenSSH* compat 0x04000000
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5-etm@openssh.com none
debug1: kex: client->server aes128-ctr hmac-md5-etm@openssh.com none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA 27:e5:d3:f7:2a:9e:eb:6c:93:cd:1f:c1:47:a3:54:b1
debug1: Host 'git.oschina.net' is known and matches the ECDSA host key.
debug1: Found key in /home/liu/.ssh/known_hosts:1
debug1: ssh_ecdsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/liu/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug1: Authentication succeeded (publickey).
Authenticated to git.oschina.net ([180.97.163.93]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Remote: Forced command.
debug1: Remote: Port forwarding disabled.
debug1: Remote: X11 forwarding disabled.
debug1: Remote: Agent forwarding disabled.
debug1: Remote: Pty allocation disabled.
debug1: Remote: Forced command.
debug1: Remote: Port forwarding disabled.
debug1: Remote: X11 forwarding disabled.
debug1: Remote: Agent forwarding disabled.
debug1: Remote: Pty allocation disabled.
debug1: Sending environment.
debug1: Sending env LANG = zh_CN.UTF-8
Welcome to Git@OSC, aromer!
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 3384, received 3016 bytes, in 1.6 seconds
Bytes per second: sent 2066.7, received 1842.0
debug1: Exit status 0



遇到的问题如下

1 可以单独git clone私有项目 不允许整个项目多分之同步

2 同步整个代码各种要权限 怀疑后台根本没有多项目组加权限给我生效 (这是遇到第二次,第一次站点人员帮忙加的)

遇到提示如下

aromer

Get git@git.oschina.net:tebeta_yios/android.git ssh_exchange_identification: Connection closed by remote host fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

aromer

fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

加载中
0
Zoker
Zoker

我跟进了几个小时,来总结一下:

首先没有前台加上后台没加上这一说,加上了显示了,就是加上了

第一次您遇到,是遇到了当时我们更新的一个权限缓存bug,早已经解决。

根据您的反馈,使用git clone ssh私有项目地址,完全没问题,这说明权限完全没问题

为什么会出现

Get git@git.oschina.net:tebeta_yios/android.git ssh_exchange_identification: Connection closed by remote host fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
因为是用的
repo init -u git@git.oschina.net:*****/****.git -b master
这种命令

但是您反映的是只有您自己的这个命令有问题,同事都没问题,好的,那么可以判定是您电脑配置的问题,所以现在需要几个信息来协助您

你的电脑操作系统

账户配了几个keys

本地有几个keys

本地的key是否有加过不同的gitosc账户上去

:)

aromer
aromer
回复 @Zoker : 现在我让没有进行同步的队友 同步了一下 他的也出现和我一样的问题 不在一个地区 排除我的网络原因
Zoker
Zoker
回复 @aromer : 帅哥,刚刚说了,上次是权限缓存,大家都会遇到,是共性问题。这次你的git操作也没问题,只是repo init这种命令,而且您的同事也没问题,所以肯定跟您的电脑有关系,你还是回答下我的那个回复,给下相关信息吧。
aromer
aromer
回复 @Zoker : 好吧 一个不幸的消息 团队里又一个出现错误的
aromer
aromer
回复 @Zoker : 希望能快点 谢谢咯
Zoker
Zoker
回复 @aromer : 另外,你的账户一切正常,没被屏蔽,你git操作都正常,说明问题就在repo init
下一页
0
Zoker
Zoker

麻烦给以下信息:

你的电脑操作系统

运行git clone的方式

运行repo init的方式

两种是否在同一种终端。

aromer
aromer
回复 @Zoker : 发给你了
Zoker
Zoker
回复 @aromer : 把你电话留言给我,我想问下你的环境。
aromer
aromer
同一个终端 建议检查贵方后台服务器了 同团队另外一个人也出现跟我一样的问题 提示什么都一样
返回顶部
顶部