Skip to Content

How to pass environment variable through jump server?

How can I forward env variables over ssh in Ezeelogin?


1.  Add environment variable to Ezeelogin GUI > settings > General > Security > Passthrough Environment Variables



2. Allow environment variable in /etc/ssh/sshd_config of  Ezeelogin installed gateway server & the remote server

[email protected] :~# vi /etc/ssh/sshd_config 

 AcceptEnv java_home

Restart ssh service

[email protected] :~# service ssh restart

3.  Add the environment variables to the /etc/ssh/ssh_config as follows to your desktop machine or from the machine you need to forward the environment variable.

[email protected]:~# vi /etc/ssh/ssh_config 

  SendEnv java_home