Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing support for remote GDB via intermediate remote server #192 #223

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mohamedchebbii
Copy link

Hello @WebFreak001,
thank you for your comments, please bear with me, I'm not familiar with npm packages.

I checked the ssh2 package: https://www.npmjs.com/package/ssh2#dynamic-11-port-forwarding-using-a-socksv5-proxy-using-socksv5
It seems that It support port forwarding, but I can't find where to add the username/password/ssh_key_file
but ssh2_promise do that: https://www.npmjs.com/package/ssh2-promise#connect-to-ssh-server-via-hopping

I tried in this pull request to change the minimum of code and I just remplaced ssh2 by ssh2-promise

@GitMensch
Copy link
Collaborator

@mohamedchebbii I'm very interested in this, can you please take that up again from current master with plain ssh2?
The way to do the hoping is now explicit documented at https://www.npmjs.com/package/ssh2#connection-hopping, each parameters are "normally" passed on connect.

Maybe you can adjust the proxy settings to be wrapped in an array, this way one can setup zero (array proxy === undefined), one, or even 48 proxies (which would be quite bad, but still).
Even if only "at most one proxy" is supported for now the settings are already setup to add more later - without breaking existing launch configurations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants