Windows PyCharm Remote Interpreter through SSH through WSL
I just started working remotely somewhere this week. The ssh system is complicated since I just started. I managed to get ssh to work with the jump connection on the Windows Subsystem Linux (WSL), but not on Windows proper. To do this I had to modify ~/.ssh/config to get the settings right. This does not bother me since I am more comfortable with bash than cmd. How can I use the WSL's ssh settings in PyCharm to connect to the server that I am using where my entire programming environment and all my data is located? Currently I changed PyCharm's built-in terminal to be WSL and ssh'ed and ran code from there. However, that does not let me use PyCharm's debugger which I need.
Please sign in to leave a comment.
Hello,
is seems like you configured an ssh interpreter for WSL system, however, there is specific WSL interpreter feature, please see how to configure it https://www.jetbrains.com/help/pycharm/using-wsl-as-a-remote-interpreter.html
Let me know if the debugger still does not work.
There are a number of problems with the WSL interpreter option in Pycharm, the key one being that it does not allow you to use a virtual env. We all know that there are many serious reasons to require a virtual env, and any professional will know that you are unlikely to find a commercial project that does not use one. As such if you want to do anything serious with pycharm on WSL you need to connect via ssh as things stand. If there is no way to leverage pycharms functionality over ssh then essentially there is no value in PyCharm if you are working on WSL.