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

SSH config property doesn't allow custom path #1161

Closed
GideonStowell opened this issue Oct 25, 2024 · 2 comments
Closed

SSH config property doesn't allow custom path #1161

GideonStowell opened this issue Oct 25, 2024 · 2 comments

Comments

@GideonStowell
Copy link

I am finding that the ssh/config property for my kamal 2.2.2 deployment doesn't actually support a custom ssh config path as described in the documentation.

# deploy.yml
ssh:
  user: ubuntu
  proxy: ubuntu@bastion
  config: ./sshconfig 
# ./sshconfig
host bastion
     HostName i-000000000000000
     IdentitiesOnly yes
     IdentityFile ~/.ssh/id_ed25519
     ProxyCommand sh -c "aws ssm start-session --target %h --document-name AWS-StartSSHSession --region=us-west-2"

kamal details output:

ERROR (Kamal::ConfigurationError): ssh/config: should be a boolean

The docs clearly say that this property defaults to true to load the default OpenSSH config files, but can be set "to a file path (or array of paths) to load specific configuration". I am trying to set it to a path, but as you can see in the attached error log, it is not valid configuration.

Are there any examples of how to do this correctly?

@jeremy
Copy link
Member

jeremy commented Oct 25, 2024

Check out #1129

@jeremy jeremy closed this as completed Oct 25, 2024
@GideonStowell
Copy link
Author

Thanks for finding that PR. I'd be very interested in this functionality being available soon. @jeremy are you able to help me finding someone to review and bring that change in?

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

2 participants