Date Published: September 29, 2023
SSH time out when pushing code via Git in Cloud IDE
Issue:¶
Sometimes when trying to push your code from the Cloud IDE to the Cloud you may encounter the following time out error:
$ git push origin updates
ssh: connect to host svn-abcd.devcloud. hosting.acquia.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.
Resolution:¶
To resolve this issue check your Git url by running the following command and compare it with Cloud UI:
In this scenario the Git URLs are not the same and you need to correct it by running the following command:
git remote set-url origin [Correct URL]
Alternatively you can run the following ACLI command:
git remote set-url origin $(acli api:environments:find nlada.prod |jq -r .vcs.url)
Did not find what you were looking for?
If this content did not answer your questions, try searching or contacting our support team for further assistance.