-
Notifications
You must be signed in to change notification settings - Fork 274
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
Added SSH key provisioning for SR OS #1706
Conversation
Keeping this PR opened until we figure out what needs to be added in the config to make recent openssh clients to work with recent SR OS. |
TODO:
|
7326622
to
ee0f542
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@steiler check this out 3f560f4
The SSH issue has a workaround - we need to set SSH client option
PubkeyAuthentication="unbound"
Since this is kind-related, I introduced a concept of a Main Kind Name which is the first element in the kindNames of the kind implementation.
Added sros
for SR OS node. This is in line with my idea to get rid of vr-<name>
prefix for VM-based kinds.
Then added a NodeRegistryEntry func that returns the main kind.
New stuff
What I think is missing in the SSH config is the IP address matching the node. So that people could use ssh <ip>
and get the config read.
This can be done by adding v4 and v6 addresses to ssh config like that:
# Containerlab SSH Config for the sros lab
Host clab-sros-sros 172.20.20.2 2001:172:20:20::2/64
Co-authored-by: Mathis Bramkamp <mathis.bramkamp@googlemail.com>
Co-authored-by: steiler <github@vahlenkamp.net>
9886b21
to
92f6cac
Compare
KindSpecifics seems to not work when we will have ssh config specific to a particular node version. So it is a bit over generalizing
for now. will be addressed in a separate PR
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1706 +/- ##
==========================================
- Coverage 51.62% 51.48% -0.14%
==========================================
Files 141 142 +1
Lines 13751 13776 +25
==========================================
- Hits 7099 7093 -6
- Misses 5864 5894 +30
- Partials 788 789 +1
|
Hi @mabra94
Here is a new PR, since there were quite some things I wanted to remove in your original PR.
Unfortunately while keys are configured in SR OS I fail to successfully login using them. Maybe you will understand what is missing =( Was testing on 23.7.R1
The config renders ok on SR OS, as far as I see
But either the key value is not provided as it should, or smth else, but it just doesn't work.