-
Notifications
You must be signed in to change notification settings - Fork 347
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
T5653: Command to display SSH server public key fingerprints #2363
Conversation
Fixed missing flush=True
- Switch to vyos.utils.process import cmd - Changed default to not show ascii representation and added an option to optionally show
Added option to show ascii representation
Made the following changes:
|
It would be nice if you can squash the commits into one. Otherwise we will do it through the GitHub UI after the second approval and before the merge |
I was using the Github web UI to do the commits, I'm not entirely sure how do squash them on my end without pulling out the git CLI tools. If it's acceptable, if it could just get "squash and merged" that would be great. |
Oh, so this is untested code? That explains this:
|
I wouldn't say untested, it works fine on my system... I'll test it against the public key you provided and will see if it acts up on my system as well.
|
Weird. ssh-keygen does not like that file:
|
Catch invalid public key files
I've added a try/except so it shouldn't throw an error when running into invalid .pub files now. |
Works for me |
@Mergifyio backport sagitta |
❌ Command disallowed due to command restrictions in the Mergify configuration.
|
@Mergifyio backport sagitta |
✅ Backports have been created
|
@JeffWDH thanks for contribution! |
Change Summary
As requested in T5653, a command that outputs the fingerprints of the SSH server public keys.
Types of changes
Related Task(s)
Related PR(s)
Component(s) name
show ssh fingerprints
Proposed changes
show ssh fingerprints - Lists ssh server fingerprints
How to test
Smoketest result
Checklist: