Reputation: 2038
I want to configure PyCharm 3.0 to use a Remote Python Interpreter.
The Problem is, I have to connect over a SSH Gateway:
MyMachine -> Gateway -> Machine with Python
When I connect via Cygwin I type the following: ssh -t [email protected] "ssh [email protected]"
Is there a way to achieve this in PyCharm? Another question, can I forward the X11 server to PyCharm (so that I can view the matplotlib plots on my machine?)
Regards, m
Upvotes: 5
Views: 3231
Reputation: 498
I was able to the piggyback X11 forwarding through another ssh connection. Try setting the DISPLAY environment variable in your PyCharm run configuration like so:
DISPLAY=localhost:102
Check the value of DISPLAY in the other connection to see exactly what the value should be.
Upvotes: 6
Reputation: 44
I am not sure I have understood your question correctly, it is maybe more adequate for the UNiX/Linux part.
At you machine:
ssh -fN -L 2222:machinewithPython:22 \ [email protected]
This connects port 2222 on your local machine to port 22 on remotemachine, and the ssh tunnnel will remain open until you kill the ssh process.
See the following links here and there.
Upvotes: 1