我有Ubuntu16.04.3LTS的Microsoft中的VM,建议我重新启动它,然后更新,我做了。在此之前,我的git回购很好(拉和推)。现在我做不到,当我尝试的时候,我得到了这个:
ssh: connect to host hostname.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.我不认为这是ssh问题,因为我可以使用ssh登录到VM。该怎么办呢。
发布于 2017-10-25 08:02:24
我得到了答案。它连接到默认的ssh端口22,这与我的端口不同。
git远程添加您想要的名称ssh://your_username@***.com:your_app_port/your/git/repo/path。
发布于 2017-10-24 16:25:31
“连接超时”意味着您的客户端(在本例中是ssh程序)试图建立到远程服务器的TCP连接,但远程服务器从未响应。造成这种情况的共同原因是:
https://stackoverflow.com/questions/46907271
复制相似问题