Skip to Content

How to pass environment variable through jump server?

How can I forward env variables over ssh in Ezeelogin?

Overview: This article helps Ezeelogin gateway users to set passthrough environment variables that should be allowed to be passed to the remote servers when logging in via Ezeelogin SSH jump host. 

Step 1: Login to Ezeelogin GUI and add the environment variables under Settings -> General -> Security -> Passthrough Environment Variables

Step 2: Allow environment variables to the /etc/ssh/sshd_config file of both the Ezeelogin installed server and the remote server.

root@gateway:~# vi /etc/ssh/sshd_config 

AcceptEnv java_home

Step 3: Restart ssh service

root@gateway:~# service ssh restart

Step 4: Add the environment variables to the /etc/ssh/sshd_config file of the desktop machine or the machine from which you need to forward the environment variables as follows:

root@desktop:~# vi /etc/ssh/ssh_config 

SendEnv java_home

Related Articles: