wsl安装编译工具包
sudo apt-get install cmake gcc clang gdb build-essential
wsl安装openssh
wget https://raw.githubusercontent.com/JetBrains/clion-wsl/master/ubuntu_setup_env.sh && bash ubuntu_setup_env.sh
安装成功后ssh端口为2222
配置clion
参考:https://www.jetbrains.com/help/clion/how-to-use-wsl-development-environment-in-clion.html