Go.CD server and agents runs git commands in headless mode. Do you have a pass-phrase for your ssh key?
"Can't open display: :0" can happen when git prompts for the pass-phrase. It works when executing from the terminal because pass-phrase is cached by the ssh-agent. On Mon, Nov 7, 2016 at 12:09 PM, 贺志强 <[email protected]> wrote: > when i try to ctreat a pipline,i happens problems in step two;then is > errors, > > > Error performing command: --- Command --- > git ls-remote [email protected]:xxb_student_android refs/heads/master > --- Environment --- > {GIT_ALLOW_PROTOCOL=http:https:ssh:git:file:rsync} > --- INPUT ---- > > > --OUTPUT --- > > --- ERROR --- > STDERR: No protocol specified > STDERR: Error: Can't open display: :0 > STDERR: Host key verification failed. > STDERR: fatal: Could not read from remote repository. > STDERR: > STDERR: Please make sure you have the correct access rights > STDERR: and the repository exists. > --- > > > > but when i execuse "git ls-remote [email protected]:xxb_student_android > refs/heads/master" in my ubutu terminal,it is ok; > > could you help me? > > -- > 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]. > For more options, visit https://groups.google.com/d/optout. > -- 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]. For more options, visit https://groups.google.com/d/optout.
