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

Support ProxyJump and ProxyCommand options #146

Open
dontmint opened this issue Feb 2, 2023 · 5 comments
Open

Support ProxyJump and ProxyCommand options #146

dontmint opened this issue Feb 2, 2023 · 5 comments
Assignees

Comments

@dontmint
Copy link

dontmint commented Feb 2, 2023

Wishlist currently not able to use ProxyJump and ProxyCommand in ssh_config file, It's very nice to have this feature

@ryuheechul
Copy link

just encountered the same issue. can't access a host via bastion with wishlist without ProxyJump at ~/.ssh/config being recognized

caarlos0 added a commit that referenced this issue Jul 10, 2023
caarlos0 added a commit that referenced this issue Jul 11, 2023
* feat: ProxyJump support

refs #146

* test: improve test

* fix: improve user/host split, ports, etc
@caarlos0
Copy link
Member

ProxyJump implemented in #203.

ProxyCommand I'm not sure it makes sense to implement, as we don't use the ssh binary...

@daniejstriata
Copy link

I use cloudflared to access my hosts and for that to work I need to initiate the connection using ProxyCommand.
ProxyCommand /usr/bin/cloudflared access ssh --hostname %h

@curio77
Copy link

curio77 commented Jan 18, 2024

If the Host referenced by a ProxyJump is just an ssh config host name (not a real host name), wishlist still fails with lookup HOST: no such host. Why does it need to look up the host?

@caarlos0
Copy link
Member

If the Host referenced by a ProxyJump is just an ssh config host name (not a real host name), wishlist still fails with lookup HOST: no such host. Why does it need to look up the host?

we don't use the ssh binary from the system, instead, we use the ssh client library for Go, which will open the connection. To open the connection, it needs to resolve the host.

regarding not using the ssh configured host, that is likely a bug in itself.

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

No branches or pull requests

5 participants