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

clabverter to create config maps with public keys from user's host to enable pass-less ssh access #18

Open
hellt opened this issue Sep 19, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@hellt
Copy link
Member

hellt commented Sep 19, 2023

One of the niceties coming with clab (for srlinux) is auto-enabled pass-less ssh login.

It is enabled with containerlab gleaning public keys from ~/.ssh/*.pub and reading keys from SSH agent. Then this is all fed to srlinux via config as part of the postdeploy stage.

In clabernetes this can be handled by clabverter (or any other c9s runner in the future).
The same logic can apply when clabverter creates config maps with public key material gleaned from pub files and agent (re-using clab code) and creating config maps that are mapped to ~/.ssh/authorized_keys file on launcher pod.

That way clab running in launcher could read keys from ~/.ssh/authorized_keys and provision them for srlinux enabling pass-less access.

@hellt hellt changed the title clabverter to create config maps with public keys from user's host clabverter to create config maps with public keys from user's host to enable pass-less ssh access Sep 19, 2023
@hellt hellt added the enhancement New feature or request label Sep 19, 2023
@steiler
Copy link
Contributor

steiler commented Oct 13, 2023

Copy the pubkey code or import from clab?
Tried importing, which gave me strange ignite runtime compile erorrs. Can try fixing them if importing is the preferred way.

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

No branches or pull requests

2 participants