title: Using a remote repository with non-standard port
body: <p>I am setting up my local git project for a remote repository. The remote repository is being served on a non-standard port (4019).</p>
  
  <p>But it doesn't work. Instead I get the following error message:</p>
  
  <pre><code>ssh: connect to host git.host.de:4019 port 22: Connection refused
  fatal: The remote end hung up unexpectedly
  error: failed to push to 'ssh://root@git.host.de:4019/var/cache/git/project.git'
  </code></pre>
  
  <p>My local git config is <a href="http://pastie.org/652605" rel="noreferrer">as follows</a>:</p>
  
  <pre><code>[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
  [remote "origin"]
    url = ssh://root@git.host.de:4019/var/cache/git/project.git
    fetch = +refs/heads/*:refs/remotes/origin/*
  [branch "master"]
    remote = origin
    merge = refs/heads/master
  </code></pre>
  
  <p>(The port and host are placeholders for the actual port and host.)</p>
  
  <p>What is wrong with my git configuration?</p>