-
打开本地终端并运行:
ssh -L <local_port>:<target_server_ip>:22 <proxy_server_user>@<proxy_server_ip>
运行完之后就应该已经连接上proxy
-
(Optional) 可以再开一个终端测试一下:
ssh -p <local_port> <target_server_user>@localhost
-
设置Pycharm
- host: localhost
- port: <local_port>
- user: <targer_server_user>