Skip to content

Fixes SSH public key auth, misc document clean-up #295

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

Merged
merged 3 commits into from
Jan 17, 2025

Conversation

msheiny
Copy link
Contributor

@msheiny msheiny commented Jan 1, 2025

What this does

This PR

Testing

  1. Made the following changes to my nautobot config:
+++ b/development/nautobot_config.py
@@ -152,6 +152,8 @@ PLUGINS_CONFIG = {
                 "extras": {
                     "fast_cli": False,
                     "read_timeout_override": 30,
+                    "use_keys": True,
+                    "key_file": "/source/.ssh_test/id_rsa",
                 },
             },
         },
  1. Created an ssh rsa key at .ssh_test/id_rsa in this repo
  2. Spun-up a containerlabs instance of an arista ceos and enabled SSH public key auth using that public key
  3. Created a secretsgroup where i just specified the username (i also tried setting the password to a random value as suggested in the docs, but that seemed kinda pointless so I modified the docs accordingly)
  4. Ran a job against the arista device and confirmed that login was successful

@msheiny msheiny marked this pull request as ready for review January 1, 2025 00:43
@msheiny msheiny added the bug label Jan 1, 2025
@msheiny msheiny force-pushed the fix_ssh_pub branch 2 times, most recently from 7e6ebb4 to 2ad645d Compare January 2, 2025 16:47
Comment on lines 67 to 70
Navigate to the Device Onboarding Job: Jobs > Perform Device Onboarding (original).

or

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this part should stay

@jeffkala jeffkala merged commit fa067e0 into nautobot:develop Jan 17, 2025
14 checks passed
@smk4664 smk4664 added the type: bug Something isn't working as expected label Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SSH keypair auth does not work with the SSOTSyncDevices job
4 participants