remote connection to console process behind firewall?

Answered

Hi,

I would like to set up pycharm development environment to remote server behind firewall.

I added ssh port forwarding on NAT, and it works fine.

But, when I run Tools->Python Console, it fails to connect console process.

Console process is launched by ssh://userid@hostip:hostport/usr/bin/python /userid/.pycharm_helpers/pydev/pydevconsole.py 0 0, and random ports are used as listening ports for console process.

I think these ports should be specified on NAT.

How can I configure these ports on pycharm?

Thanks,

Jae-Hyuck

1
2 comments

Hi Jae! Tell me please can you run or debug scripts with your Remote interpreter configured?

0
Avatar
Permanently deleted user

Hello,

 

I got the exactly same problem. I was able to run the whole script but I had to upload the script to the server via Tools -> Deployment -> Upload to ...

However if I just try "Execute Line in Console", the error same with OP's appears.

0

Please sign in to leave a comment.