I have setup SSH key on CENTOS 7
server and also have added SSH
in my Bitbucket
personal settings. But still I am getting Jenkins error as:
Although I have setup ssh key on CENTOS 7
server where the Jenkins is installed. On running ssh -v [email protected]
command in terminal I am getting a number of lines and it seems that the connection has been established successfully. The terminal output was:
But still I am getting authentication error.
I have tried other solutions like Jenkins Shared Library: Permission denied (publickey) and Jenkins : stderr: Permission denied (publickey). fatal: The remote end hung up unexpectedly But none of them worked. Please help me.
CodePudding user response:
I think your Repository URL
is not correct. If you have setup SSH
connection in bitbucket then you should use url accordingly.
- Go to Bitbucket and click on
clone
button ion your repository. - Select
SSH
on the top right of the dialogue being displayed. - Copy the url written after
git clone
keyword. It will go likegit@.....
That should work.