Search code examples
clionremote-server

How to source environment variables from a script on a remote host when using remote mode in clion?


At my company we use a number of linux servers dedicated to compilation of our codebase. I would like to use CLion's remote working capabilities, but so far I am unable to find a way for CLion to source my ~/.bashrc file, which sources other files that set the env and toolchain.

Is there a way to make clion source a file, .bashrc to be specific, after making the ssh connection to the remote server?


Solution

  • Unfortunately, as of 13.11.2020 there is no way to source a script from the remote machine while working in CLion remotely via ssh.

    There is a ticket for this functionality to be added so if you are reading this in the future, check the web, maybe the situation has changed.