pycharm can't connect to a remote behind a gateway

已完成

I try to connect to a remote machine that is behind a gateway for debug and deploy.

By setting ~/.ssh/config to

Host target_machine_name
    ProxyCommand ssh gateway_machine -W %h:%p

I can ssh from the command line to that machine (with: ssh target_machine_name)

However, when I try to "configure remote python interpreter", I end up with the following error:

java.net.UnknownHostException: target_machine_name

Any help would be really appreciated.

Thanks a lot

 

 

 

0
Avatar
Permanently deleted user

I managed to solved the issue, by replacing the tunneling, with an explicit ssh tunneling command,

    ssh -N -L localhost:2260:target_machine_name:22 gateway_machine

and directing ssh to localhost with port 2260

0
Avatar
Permanently deleted user

Hi, I have the same problem, what did you do for setting up the Deployment (mapping files to the remove server)?

0

请先登录再写评论。