Pass ENV VAR to new ssh conection

Is it possible to pass an ENV VAR to an ssh connection like you do with terminal ?
I would like to be able to pass a variable to my bashrc script and automate some things based on that variable but be able to configure it in the connection interface.


Unfortunately, this feature isn't supported by our SSH subsystem yet.
Here's a request for it:

You could use this as a workaround, but it requires modifying the SSH config on the server:


Thanks Eugene (Nice name bty) .

Ι came across the LC workaround my self also and probably end up going this way.


Please sign in to leave a comment.