jenkins ssh AgentForwarding -


jenkins@jenkins-server --- authenticates (w/ rsa key) ---> git@gitlab-server

jenkins@jenkins-server --- authenticates (w/ rsa key) ---> user@qa-server

from command line output expected

jenkins@jenkins-server $ ssh user@qa-server 'ssh -t git@gitlab-server' welcome gitlab, anonymous! 

running same command jenkins job "execute shell" build step, output same (as expected).

when using "send files or execute commands on ssh" build step, jenkins able connect user@qa-server then, ssh -t git@gitlab-server remote command fails with

permission denied, please try again.

permission denied, please try

again. permission denied (publickey,password).

it looks ssh-agent not running on qa-server in particular case.

all servers running ubuntu server. have jenkins ssh agent plugin installed , configured.

how debug (and/or fix). how can see exact command jenkins running?

somehow or mistake (i'm not sure) ssh-agent running on qa-server (started on .bash_profile load available keys).

as stopped ssh-agent running @ qa-server started running smooth.

recap: ssh-agent running @ jenkins-server started jenkins ssh agent , there's no ssh-agent running @ qa-server.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -