Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Bastion (jump host) support? #31

Open
maxrpi opened this issue Sep 19, 2020 · 6 comments
Open

Bastion (jump host) support? #31

maxrpi opened this issue Sep 19, 2020 · 6 comments
Labels
enhancement New feature or request

Comments

@maxrpi
Copy link

maxrpi commented Sep 19, 2020

I have a remote setup with an intervening bastion machine, a.k.a., a "jump host". I use a ProxyCommand in my ssh_config file to allow the Remote (SSH) extension to sail right through. But of course, the ssh2 process being launched by remote-x11 does not take its cues from the ssh_config file and the connection to the target machine fails, even with a manually specified host. That host is just not accessible without going through the bastion machine.

Any chance you can support bastion hosts? They're not that uncommon. ssh2 does have a connection hopping solution here: mscdex/ssh2#764. Also consider the https://github.com/Stocard/node-ssh-forward library that wraps the ssh2 jump host functionality reasonably neatly.

@joelspadin joelspadin added the enhancement New feature or request label Sep 19, 2020
@joelspadin
Copy link
Owner

I could attempt to support it, but I don't have a setup like that readily available to test against. (I also have other things I'd rather spend me free time on than this extension at the moment.) I'll gladly accept a PR for it though.

I did find a library for parsing ssh_config, though I didn't find anything that would automatically make ssh2 honor ssh_config. I'll make another issue to see if I can at least read the settings I do support from it though.

@maxrpi
Copy link
Author

maxrpi commented Sep 23, 2020

I'm unlikely to get to it either, because of other obligations.

I'll point out that you don't really need a bastion set up to test. It's basically hopping from any host with an sshd to another host with an sshd running. Even two ports on the same machine.

@rcketscientist
Copy link

@maxrpi Try #34, let me know if it works for your use case.

@harivyasi
Copy link

harivyasi commented May 14, 2021

Hi! Thanks for the excellent extension. It made my life a lot easier. Would you like to restart work on this issue/associated PR. I have a setup that can be used for testing; and having this (proxy jump capability) would be great :)

@joelspadin
Copy link
Owner

Have you tested whether jump hosts work with the official x11 forwarding support yet?

Since Microsoft added support for SSH forwarding to their Remote SSH extension, I do not plan to do any more work on the SSH part of this extension.

@rcketscientist
Copy link

rcketscientist commented May 14, 2021 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants