title: Jenkins during fetch ERROR: Error cloning remote repo 'origin'
body: <p>I'm a beginner to using jenkins and I'm having a problem with jenkins fetching from our repo.<br>
  I'm getting a &quot;The remote end hung up unexpectedly&quot; error.</p>
  <blockquote>
  <p>08:26:19 Fetching upstream changes from git@my.gitrepo.net:myFork/myBranch.git</p>
  <p>08:26:19  &gt; git --version # timeout=10</p>
  <p>08:26:19 using GIT_SSH to set credentials Jenkins user at gitlab</p>
  <p>08:26:19  &gt; git fetch --tags --progress git@my.gitrepo.net:myFork/myBranch.git +refs/heads/<em>:refs/remotes/origin/</em></p>
  <p>08:27:22 ERROR: Error cloning remote repo 'origin'</p>
  <p>08:27:22 hudson.plugins.git.GitException: Command &quot;git fetch --tags --progress git@my.gitrepo.net:myFork/myBranch.git +refs/heads/<em>:refs/remotes/origin/</em>&quot; returned status code 128:</p>
  <p>08:27:22 stdout:</p>
  <p>08:27:22 stderr: ssh: connect to host my.gitrepo.net port 22: Connection timed out</p>
  <p>08:27:22 fatal: The remote end hung up unexpectedly</p>
  </blockquote>
  <p><br><br></p>
  <p>I thought that maybe the remote is unreachable but I tried using<br></p>
  <blockquote>
  <p><i>git ls-remote (our_repo.git)</i><br></p>
  </blockquote>
  <p>in my local machine and it works so maybe it's not issue. (I guess?)</p>
  <p>Is there configuration I need to consider to ensure the connection is correct? <br>Like maybe proper SSH. Currently we have set public SSH though.</p>