Is It Possible to Have PHPStorm Use OpenSSH Within Ubuntu / WSL?

I work with a jumphost and fairly complex ssh config. It throws the native Windows ssh client implementation completely off and uses unsupported directives. I'm trying to use ssh to sync files but am having to use a combo of inotify + rsync from within a WSL Ubuntu shell. It would be amazing if I could tell PHPStorm to use the ssh binary in WSL. All my problems would be solved!

0
5 comments

We need more info about this: what exactly you're doing & verbose IDE logs. Open Help > Diagnostic Tools > Debug Log Settings... and add #com.intellij.ssh line. Reproduce the problem and share your idea.log file (Help > Show log in ...), e.g. using https://uploads.jetbrains.com/

0
Avatar
Permanently deleted user

Dmitry, thank you and of course! In the logs you'll see the results of me hacking with the config file to try to get it right. The first problem was using `~/.ssh/*` for the path. It works fine in the Ubuntu shell but obviously not in windows.

Once I fixed that it started hating on the ControlPath and ControlMaster directives so I removed those just to see what it would do. It finally hit the jump host and other machine but would not pass the keys for auth so it forced a passkey login every time which our dev environments do not support. Anyways, I hope this helps and again, thank you!

Upload id: 2021_06_03_819E6cb8XCiQqBcL

0

Thanks! I'm still missing a full picture, sorry. Are you trying to sync files using deployment? Where exactly SSH is used: sftp connection or something else?

You also mentioned WSL: but your project isn't inside WSL. Were you simply guessing if IDE could use WSL ssh binary while running inside Windows?

Finally, basically the issue is that SSH config doesn't work because jumphost can't parse it? 

0
Avatar
Permanently deleted user

Dmitry, my bad. My brain is all over the place right now. So I am trying to sync my files using deployment over sftp. I access my development environment via a jumphost over ssh.

I was guessing or wondering if there was a way to use WSL ssh binary while running in windows. My terminal I use inside PHPStorm is the WSL / Ubuntu one.

The basic issue seems to be that the native Windows ssh binary cannot parse my ssh config due to unsupported directives ControlPath ControlMaster and the private key naming conventions.

1

Thanks! 

Could you please:

1) shut down IDE, delete your idea.log file

2) try to connect once again & wait until the connection fails, i.e. it gives you some error message. Then please share your idea.log file again.

 

We need to check what messages are returned in stderr, as suggested in https://youtrack.jetbrains.com/issue/IDEA-214679. Btw feel free to check discussions in that report - probably it would help you figuring out the settings that would work with your setup.

0

Please sign in to leave a comment.