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 command to output ~/.ssh/config snippets for accessing machines #27

Open
memblin opened this issue Aug 18, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@memblin
Copy link
Owner

memblin commented Aug 18, 2024

As a user of lvlab I need the ability to easily produce a copy paste snippet for what to add to my ~/.ssh/config file to make the virtual machines deployed by lvlab easiy reachable by with the designated SSH key and user provided in the cloud_init configuration.

Examples

(tkc-lvlab-py3.12) laptop01:~/repos/github/memblin/tkc-lvlab-py$ lvlab ssh-config salt.local

Host salt.local
       HostName salt.local
       IdentityFile ~/.ssh/id_ed25519

AC

  • The lvlab ssh-config <machine-name> command outputs a snippet that one could paste into a ~/.ssh/config to specify the username, private key path, etc.. for connecting to the machine.
  • The lvlab ssh-config command without a machine-name specified should output a ssh-config snippet for all machines.
@memblin memblin converted this from a draft issue Aug 18, 2024
@memblin memblin added the enhancement New feature or request label Aug 18, 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
Status: Ready
Development

No branches or pull requests

1 participant