title: Configure port for git repository in jenkins
body: <p>I am trying to create a Maven project in Jenkins. The code is in Git repository which uses non standard port 1754.</p>
  
  <p>The port details are already there in the config file but the git plugin in jenkins is not able to connect. It is giving error for port 22.</p>
  
  <p>Following <strong>error</strong> is coming in Jenkins (Git section) after adding following url: <code>gitolite@10.115.2.110:AutomationCode</code></p>
  
  <pre><code>  Failed to connect to repository : Command "/usr/bin/git -c 
    core.askpass=true ls-remote -h gitolite@10.115.2.110:AutomationCode 
    HEAD" returned status code 128:
    stdout: 
    stderr: ssh: connect to host 10.115.2.110 port 22: Connection refused 
    fatal: Could not read from remote repository.
    Please make sure you have the correct access rights
    and the repository exists.
  </code></pre>
  
  <p>When I cloned the git repository directly from terminal it is working fine but in Jenkins it is not using the config file for port.</p>
  
  <p>I tried giving ssh URL but it is also not working. <strong><code>"Connection refused" error</code></strong> is coming.
  I tried giving fixed port number in Manage <code>Jenkins -&gt; configure system page in SSH Server</code> section. But still issue is unresolved.</p>
  
  <p>Is there any way by which we can configure a project to use specific port in Jenkins -> Git or maybe access the .ssh/config file to take the port number ?</p>
  
  <p>I am using SSH Keys to access the git.</p>