CLion
How to use Clion on a remote interpreter
When you try to program C++ and would like to build it with a remote interpreter, here are steps you should follow.
Config SSH
在本地配置SSH(Host, Port)。注意,此时如果是使用跳板机进行远程服务器登录的话,要在跳板机和远程服务器这两个地方,都添加本地的ssh公钥,因为这个操作是需要二次验证的
在 .ssh/config 文件下
配置好以后,可以在本地terminal当中输入 gpu-test
来验证是否配置成功
例如:
Clion相关配置
需要配置的有 Toolchains, CMake, Deployment 这三个项目
添加Remote Host, 填写相关信息
例如:
在 CMake当中。进行如下修改
Deployment下的 connection 做如下修改,并填写好对应的 mappings
Last updated
Was this helpful?