title: Setting up jenkins with git by ssh
body: <p>Im trying to setup jekins with Git by ssh.</p>
  
  <p>Standard execute:</p>
  
  <pre><code>git clone ssh://[username]@[server]/srv/git/[repo]
  </code></pre>
  
  <p>after putting password repositorium is cloned on my disk.</p>
  
  <p>Now on jenkins</p>
  
  <pre><code>ssh://[username]@[server]/srv/git/[repo].git
  
  Failed to connect to repository : Command "git -c core.askpass=true ls-remote -h ssh://[username]@[server]/srv/git/[repo].git HEAD" returned status code 128:
  stdout:
  stderr: Permission denied, please try again.
  Permission denied, please try again.
  Permission denied (publickey,password).
  fatal: Could not read from remote repository.
  
  Please make sure you have the correct access rights
  and the repository exists.
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/7Nxq2.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/0Ijjz.png" alt="enter image description here"></p>
  
  <p>or another way is
  <img src="https://i.stack.imgur.com/hx6Aj.png" alt="enter image description here"></p>