PyCharm: Configuring multi-hop remote Interpreters via SSH

筅森魡賤 提交于 2019-11-30 03:14:49
AHA

You can use port forwarding on ssh. If local system is A, the next ssh hop is B, and the target hop is C, open a terminal and run:

ssh -L 6000:<server C IP>:22 <user_serverB>@<server B IP>

You can substitute 6000 with any port. Now you can ssh into the ssh server on C on another terminal with:

ssh -p 6000 <user_serverC>@localhost

Keep in mind not to close the first terminal!

The same goes for the PyCharm. Just set the remote interpreter connection through ssh with the following configuration:

  • host: localhost
  • port: 6000
  • user: user_serverC
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!