title: Jenkins - Unable to git clone from slave node. SSH keys
body: <p>I have just set up my first Jenkins slave. I run the build, and I hit problems with the SSH keys.
  The master Jenkins server is running under the user 'jenkins'. I have set up the SSH keys such that I can SSH from the master to the slave without a password.  </p>
  
  <p>e.g. From the master:</p>
  
  <pre><code>jenkins@master:~$ ssh slave
  Last login: Tue Apr 17 10:30:22 2012 from masterjenkins.com
  $ whoami
  jenkins
  </code></pre>
  
  <p>So that proves that the slave node is also running under the 'jenkins' user. (I have copied the public ssh key from the jenkins@slave to the remote git server). And I am able to issue the git clone manually from the slave, but when I kick off the build from the master I get these kinds of messages:</p>
  
  <pre><code>    ERROR: Error cloning remote repo 'origin' : Could not clone git@host:abc
  hudson.plugins.git.GitException: Could not clone git@host:abc
  Caused by: hudson.plugins.git.GitException: Error performing command: git clone --progress -o origin git@host:abc /var/lib/jenkins/workspace/abc_build
  Command "git clone --progress -o origin git@host:abc /var/lib/jenkins/workspace/abc_build" returned status code 128: Initialized empty Git repository in /var/lib/jenkins/workspace/abc_build/.git/
  Host key verification failed.
  fatal: The remote end hung up unexpectedly
  Caused by: hudson.plugins.git.GitException: Command "git clone --progress -o origin git@host:abc /var/lib/jenkins/workspace/abc_build" returned status code 128: Initialized empty Git repository in /var/lib/jenkins/workspace/abc_build/.git/
  Host key verification failed.
  fatal: The remote end hung up unexpectedly
  Trying next repository
  ERROR: Could not clone repository
  FATAL: Could not clone
  </code></pre>
  
  <p>So it is still hinting that my SSH keys are not set up correctly. 
  Can anyone tell me what keys I need to copy where? </p>
  
  <p>Many thanks,
  <strong>ns</strong></p>