Discuss / Git / 联通后无法push

联通后无法push

Topic source

季超____

#1 Created at ... [Delete] [Delete and Lock User]

老师,您好,

首先是报出错误:

ssh: Could not resolve hostname github.com: Temporary failure in name resolution

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

按照步骤走下来,应该可以和github联通

使用命令ssh -T git@github.com

显示 You've successfully authenticated, but GitHub does not provide shell access.

使用命令ping github.com

显示:PING github.com (13.229.188.59) 56(84) bytes of data.这个我不太明白是什么意思

如何处理,谢谢老师

季超____

#2 Created at ... [Delete] [Delete and Lock User]

可以了,去github上复制的地址,前面可能是手打的出现错误了

-黄海-

#3 Created at ... [Delete] [Delete and Lock User]

Host github.com

User git

Hostname ssh.github.com

PreferredAuthentications publickey

IdentityFile ~/.ssh/id_rsa

Port 443

在“.ssh”下面建立文件config。注意是“.”ssh,以及config没有后缀


  • 1

Reply