Reputation: 3823
I installed Ubuntu through the Windows store and then followed the Jetbrains CLion/WSL setup guide here: https://www.jetbrains.com/help/clion/how-to-use-wsl-development-environment-in-clion.html
However after following that guide I was still an error in CLion saying "WSL not found"
I tried restarting CLion but that didn't fix it.
I verified WSL works fine on my PC:
CLion version information:
CLion 2019.2.1
Build #CL-192.6262.62, built on August 21, 2019
Runtime version: 11.0.3+12-b304.39 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1987M
Cores: 8
Registry: run.processes.with.pty=TRUE
Non-Bundled Plugins:
Windows version: Microsoft Windows [Version 10.0.16299.1331]
I found this related question but unfortunately repair/reset didn't work for me CLION: WSL not found, ssh connected?
Upvotes: 3
Views: 1148
Reputation: 278
All you need is to delete deprecated option from /etc/ssh/sshd_config
, change ListenAddress to 0.0.0.0, learn your WSL IP (hostname -I) and change localhost to it in CLion toolchain config.
For this you need to:
su
nano /etc/ssh/sshd_config
ListenAddress 127.0.0.1
to ListenAddress 0.0.0.0
service ssh restart
hostname -I
Note that this IP usually changes after reload. Use this tool to fight it https://github.com/shayne/go-wsl2-host
Upvotes: 0