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.
Please sign in to leave a comment.
Unfortunately, this feature isn't supported by our SSH subsystem yet.
Here's a request for it: https://youtrack.jetbrains.com/issue/IDEA-298430/Cant-set-environment-variables-for-Remote-SSH-External-Tools
You could use this as a workaround, but it requires modifying the SSH config on the server:
https://serverfault.com/questions/482907/setting-a-variable-for-a-given-ssh-host
Thanks Eugene (Nice name bty) .
Ι came across the LC workaround my self also and probably end up going this way.