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 hostnames should be accepted as "address" #85

Closed
kke opened this issue Jan 18, 2023 · 1 comment
Closed

SSH config hostnames should be accepted as "address" #85

kke opened this issue Jan 18, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@kke
Copy link
Contributor

kke commented Jan 18, 2023

For example, if you run vagrant boxes, you can do:

$ vagrant ssh-config core-02                                                                                    
Host core-02
  HostName 127.0.0.1
  User core
  Port 2200
  UserKnownHostsFile /dev/null
  StrictHostKeyChecking no
  PasswordAuthentication no
  IdentityFile /Users/kimmo/Projects/go/src/github.com/k0sproject/k0sctl/.vagrant/machines/core-02/virtualbox/private_key
  IdentitiesOnly yes
  LogLevel FATAL

If you put this into your ~/.ssh/config, it would be nice if you could do something like this in rig-using apps:

hosts:
  - ssh:
      address: core-02

As an alternative, something like this could be nice too:

hosts:
  - ssh:
      config: |
        Host core-02
        HostName 127.0.0.1
        User core
        Port 2200
@kke kke added the enhancement New feature or request label Jan 18, 2023
@kke
Copy link
Contributor Author

kke commented Jan 2, 2024

Solved in #145

@kke kke closed this as completed Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant