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

Add support for cut to ProxyCommand #10813

Closed
russjones opened this issue Mar 3, 2022 · 0 comments · Fixed by #10833
Closed

Add support for cut to ProxyCommand #10813

russjones opened this issue Mar 3, 2022 · 0 comments · Fixed by #10833
Assignees
Labels
feature-request Used for new features in Teleport, improvements to current should be #enhancements machine-id

Comments

@russjones
Copy link
Contributor

To use Machine ID, at the moment you must have DNS configured to connect to a host. The ssh_config automatically generated contains the following.

Host *.example.com !proxy.example.com
    Port 3022
    ProxyCommand ssh -F /opt/machine-id/secondary/ssh_config -l %r -p 3023 proxy.example.com -s proxy:%h:%[email protected]

This is expanded to the following when running ssh -F /opt/machine-id/secondary/ssh_config [email protected]:

debug1: Executing proxy command: exec ssh -F /opt/machine-id/secondary/ssh_config -l rjones -p 3023 proxy.example.com -s proxy:server01.example.com:[email protected]

The proxy subsystem will try and match on exact nodename so server01.example.com and always fail to match.

We should update the ProxyCommand to execute a program on disk like cut to manipulate ProxyCommand to work.

@russjones russjones added feature-request Used for new features in Teleport, improvements to current should be #enhancements machine-id labels Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Used for new features in Teleport, improvements to current should be #enhancements machine-id
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants