Einmal habe ich ssh konfiguriert, nachdem ich Git zu Hause geändert hatte, und konnte Git dann nicht mehr verwenden, nachdem ich zur Firma zurückgekehrt war.
为情所困
为情所困 2017-06-05 11:08:49
0
3
698
操作步骤是这样的 
1, git add . 
2. git commit -m 'modify' 
3. git fetch origin 


这一步报这个错 
$ git fetch origin 
ssh: connect to host github.com 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. 

求大家帮忙
为情所困
为情所困

Antworte allen(3)
某草草

把本机的ssh公钥添加在git库上面啊.

大家讲道理

一步到位的方法,重新生成公钥,然后更换公钥

阿神

两种可能:
1.公司网络禁用了SSH的22端口
2.公司机器的SSH key 没有添加

解决方案:
1.改用https协议 或 改用443端口
2.添加公钥

Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage