Rundeck not setting up environment variable for remote execution with different ssh port

后端 未结 2 1606
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-27 00:38

Rundeck setsup all the options passed to a job as environment variable like $RD_OPTION_* but it is not setting up those variables when a job is executed in remote n

2条回答
  •  不知归路
    2021-01-27 01:33

    As Yang said it was due to ssh configurations. Likewise AcceptEnv variable in sshd_config there is SendEnv variable in ssh_config so I have to specify RD_* in SendEnv like this SendEnv RD_* in localhost ssh_config which will instruct ssh to send those environment variables to server. I found out the following things that needs to be done when working with environment variables

    1. SendEnv needs to be setup in ssh_config file in localhost for sending the environment variables.
    2. AcceptEnv needs to be setup in sshd_config file in remote node in order to accept environment variables passed to the server.

提交回复
热议问题