Connecting to remote interpreter when starting PyCharm
Solution 1
Check option "Visible only for this project" of deployment configuration. This error occurs when the check mark is set.
https://www.jetbrains.com/help/pycharm/2018.3/deployment-connection-tab.html
if this checkbox is selected in an SFTP configuration, you cannot use its SSH credentials for configuring a remote interpreter.
Solution 2
This was a bug in version 4.0.2 of PyCharm and was corrected in version 4.0.3.
Edit: No longer true. I tried with another computer and having the most recent version doesn't fix the problem.
Gabriel L'Heureux
Updated on June 09, 2022Comments
-
Gabriel L'Heureux almost 2 years
I have a remote interpreter set up in PyCharm.
Everytime I close and reopen PyCharm, the connection seems to be broken, and the process to "reopen" the connection doesn't feel efficient to me.
Before doing the following, it is not possible to run any script.
Here is what I usually do:
- File -> Settings
- Project -> Project Interpreter
- Click on the gear icon on the right.
- Choose "More"
- With my remote interpreter selected, click on "Edit"
- Change "SSH Credentials" for "Deployment Configuration" (all the info is already filled)
- Click "ok" multiple times to close everything up.
At that point, I can run any scripts on the remote machine.
What is the best/fastest way to do this? (any way to "save the settings"?)
-
DasDany over 7 yearsThis helped for me. Thanks.
-
Anders_K almost 6 yearsI have the box unchecked and the problem still occurs for me