Can't use proxyjump in SSH connection.

Host target
  HostName target
  User my-username
  ProxyJump jump-ssh

Host jump-ssh
  HostName jump-ssh
  User my-username

 

The config above is my ~/.ssh/config. I can do proxy jump in VS Code but in PyCharm when I try to configure ssh the proxy jump is not working.

0
5 comments

Hello, 

 

Unfortunately ProxyJump  support has not been implemented yet. Please see the feature request https://youtrack.jetbrains.com/issue/IDEA-214679/ProxyJump-not-supported and feel free to vote for it in order to increase the priority and be notified about any updates. 

0

Does it mean we can't linked to the remote host in pycharm as long as the server requires proxy jump? Is that possible for that to be implemented sooner? I really need that function.

0

Unfortunately, that's the case but in the comments there is a workaround to use  ProxyCommand instead

0

I indeed use ProxyCommand to try to connect, but I fail again.

What's the correct syntax for ProxyCommand?

0

Should be straigh forward as mentioned in the case:

 

# ~/.ssh/config

Host jumphost
    HostName [jumphost ip]
    User [jumphost user]

Host targethost
    HostName [target_ip]
    User [target_user]
    Port [port_num]
    ProxyCommand ssh jumphost -W %h:%p\

In case it doesn't work for you, please leave a comment on the YouTrack case or create a new bug report

0

Please sign in to leave a comment.