My Source code is hosted in Bit bucket it has SSH public key configured 
from ManageAccount-> SSH keys

Now I have Maven2/3 project and Select Git Repositories as Source Code 
Management Then I have done the following

   1. 
   
   Enter Repository URL as git@<user name>bitbucket.org:/<bit bucket 
   project name>.git
   2. 
   
   Add a Credential with kind of "SSH Username with private key". Here are 
   the parameters I entered Scope: Global Username : Private Key :
   
But after this I could not move forword I see a red error saying

Failed to connect to repository : Command "git ls-remote -h git@<user name>
bitbucket.org:bitbucket.org:/<bit bucket project name>.git HEAD" returned 
status code 128: stdout: stderr: Failed to add the host to the list of 
known hosts (/home/tomcat/.ssh/known_hosts). Permission denied (publickey). 
fatal: The remote end hung up unexpectedly

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to