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

Use the variable SSH_OPTIONS_PROXYCOMMAND #3751

Open
lars18th opened this issue Oct 22, 2024 · 0 comments
Open

Use the variable SSH_OPTIONS_PROXYCOMMAND #3751

lars18th opened this issue Oct 22, 2024 · 0 comments
Labels
enhancement needs triage Issue needs to be triaged

Comments

@lars18th
Copy link

What are you trying to do?

When remotely using the multipassd daemon from another machine, the multipass client might need for some commands direct network access to the instance. In that case it uses the MULTIPASS_SERVER_ADDRESS environment variable to know where the remote daemon is located. But if the connection to the daemon is made using some tunnelling technique, then you cannot reach the shell of any instance that is not using public addresses. A simple solution could be to add support for the SSH_OPTIONS_PROXYCOMMAND included in the libssh library, which is used to establish connections from the client to the instance.

You can read more about this var here: A description of what you want to happen.

What's your proposed solution?

Just by adding support for this option already included in the libssh library used in multipass, it would be possible to establish the necessary connection to the instance without direct network routing. For example, with a simple netcat/socat proxy command you can use a socks proxy opened in the ssh session used to connect to the multipass host. This is very simple and clear. And no code changes are needed. Just add the proxy command configuration when setting up the connection using the libssh library.

Additional context

One relevant issue related to this limitation: #309

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement needs triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant