[英]Git push or pull on server
我在Microsoft Azure中使用Ubuntu 16.04.3 LTS擁有VM,建議我重新啟動它,然后更新,但確實如此。 在此之前,我的git repo工作正常(拉並推)。 現在我無法做到,嘗試時得到以下信息:
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。 我不知道該怎么辦。
我得到了答案。 它正在連接到與我的端口不同的默認ssh端口22。
git remote添加您所需的名稱ssh://your_username@***.com:your_app_port / your / git / repo / path
“連接超時”表示您的客戶端(在本例中為ssh
程序)嘗試建立與遠程服務器的TCP連接,但是遠程服務器從未響應。 常見原因是:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.