9127/error-jenkins-failed-to-connect-to-repository
I'm unable to connect Jenkins on a github repo. When I specify the repository URL, Jenkins returns the following error message: Failed to connect to repository : Failed to connect to //Zulaikha12/git-test.git (status = 407)
This happens when you create the ssh files with the root user access. This makes root the owner of the files.
The solution is to just change the ownership to the Jenkins user.
chown jenkins id_rsa.pub
chown jenkins id_rsa
Jenkins runs as another user, not as your ordinary login. So, do as this to solve the ssh problem:
Log on as jenkins su jenkins (you may first have to do sudo passwd jenkins to be able to set the password for jenkins. I couldn't find the default...)
Generate ssh key pair: ssh-keygen
Copy the public key (id_rsa.pub) to your github account (or wherever)
Clone the repo as jenkins in order to have the host added to jenkins known_hosts which is neccessary to do. Now you can remove the cloned repo again if you wish.
Hi@akhtar, There may be several reasons behind this ...READ MORE
I had the same error. I was connected ...READ MORE
To begin with, the best possible way ...READ MORE
This indicates that Maven uses Java 1.8 ...READ MORE
Hey @nmentityvibes, you seem to be using ...READ MORE
Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE
It can work if you try to put ...READ MORE
When you use docker-compose down, all the ...READ MORE
HI Mam, Please check the following solution:: 1. Switch ...READ MORE
This is how I resolved this issue: # ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.