I am trying to connect GoCD (version 21.2.0) to a git repo (version 
2.25.1), and I have entered the password of the git user under the 
'Advanced Settings' section. But I get Permission denied error as shown 
below:
 

Error performing command: --- Command --- 
git ls-remote [email protected]:sample.git refs/heads/master
--- Environment ---
{}
--- INPUT ----


--- EXIT CODE (128) ---
--- STANDARD OUT ---

--- STANDARD ERR ---
STDERR: Permission denied, please try again.
STDERR: Permission denied, please try again.
STDERR: [email protected]: Permission denied (publickey,password).
STDERR: fatal: Could not read from remote repository.
STDERR: 
STDERR: Please make sure you have the correct access rights
STDERR: and the repository exists.
---

When I run the following command from terminal, I get the prompt to enter 
password and the command gets executed successfully:

git ls-remote [email protected]:sample.git refs/heads/master

What am I doing wrong? Please help. 

Thanks


-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/36ff3680-fffe-406d-85b3-27d5e68b7a18n%40googlegroups.com.

Reply via email to