Git/SVN 仓库托管 down 代码时遇到问题,求帮助

hzdsay · 2018年10月09日 · 最后由 zhongyue 回复于 2018年10月11日 · 415 次阅读

一下两种方式都是行,这个是大概是什么问题导致的呢? git clone git@git.coding.net:lizongdi/ASO.git Cloning into 'ASO'... ssh: connect to host git.coding.net port 22: Connection timed out fatal: Could not read from remote repository.

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

git clone https://git.coding.net/lizongdi/ASO.git Cloning into 'ASO'... fatal: unable to access 'https://git.coding.net/lizongdi/ASO.git/:' Failed connect to git.coding.net:443; Connection timed out

共收到 7 条回复

您这边将 DNS 换成 114.114.114.114 试试?

ssh -T git@git.coding.net ssh: connect to host git.coding.net port 22: Connection timed out

你好: git.coding.net 地址是可以ping通

PING git.coding.net (118.25.166.124) 56(84) bytes of data. 64 bytes from 118.25.166.124 (118.25.166.124): icmp_seq=1 ttl=50 time=137 ms 64 bytes from 118.25.166.124 (118.25.166.124): icmp_seq=2 ttl=50 time=137 ms 64 bytes from 118.25.166.124 (118.25.166.124): icmp_seq=3 ttl=50 time=137 ms

并非网络不通,修改DNS有效果吗?

hzdsay 回复

您可以尝试一下,若依旧无法 clone 代码,麻烦您提供一下截图。

好的,那我尝试下,谢谢

[root@uat-1 home]# cat /etc/resolv.conf

options timeout:2 attempts:3 rotate single-request-reopen ; generated by /usr/sbin/dhclient-script

nameserver 114.114.114.114

nameserver 100.100.2.138 [root@uat-1 home]# git clone git@git.coding.net:lizongdi/ASO.git

Cloning into 'ASO'...

ssh: connect to host git.coding.net port 22: Connection timed out

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

[root@uat-1 home]#

Host git.coding.net
HostName git.coding.net
User ...
# PreferredAuthentications publickey
IdentityFile ~/.ssh/...

配置这个有用吗?

hzdsay 回复

麻烦您在终端执行:ssh -T git@git-ssh.coding.net -p 443,详情可参考帮助文档:https://coding.net/help/faq/git/git.html

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