In Jenkins, which is configured on a CentOS server, I am trying to connect to the git repository on another server using a username and password. Unfortunately, I get the following error:
Failed to connect to repository : Command "/usr/bin/git -c core.askpass=true ls-remote -h ssh:// root@ [ip addres]:2020/opt/gitrepo/enpapp.git HEAD" returned status code 128: stdout: stderr: Permission denied, please try again. Permission denied, please try again. Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). fatal: Could not read from remote repository.* Please make sure you have the correct access rights and the repository exists.
I can connect to the git server using Putty.
I can also clone the git repository using Netbeans or the command line.
The resolution of the .ssh folder is 700, and the known_hosts is 644
git ssh jenkins
Krishna
source share