git – Using a remote repository with non-standard port


I am setting up my local git project for a remote repository. The remote repository is being served on a non-standard port (4019).

But it doesn’t work. Instead I get the following error message:

My local git config is as follows:

(The port and host are placeholders for the actual port and host.)

What is wrong with my git configuration?


If you put something like this in your .ssh/config:

then you should be able to use the basic syntax:

Leave a Reply