---
title: "SSH time out when pushing code via Git in Cloud IDE"
date: "2023-09-29T17:35:13+00:00"
summary:
image:
type: "article"
url: "/acquia-cloud-platform/help/94151-ssh-time-out-when-pushing-code-git-cloud-ide"
id: "4270d3da-041d-4257-bb83-35cb3ae9fa2d"
---

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:

    $ git remote -v

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)