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

fix: check ssh public keys correctly #634

Merged
merged 1 commit into from Dec 14, 2023
Merged

fix: check ssh public keys correctly #634

merged 1 commit into from Dec 14, 2023

Conversation

cconstab
Copy link
Member

@cconstab cconstab commented Dec 14, 2023

The original check worked by blind chance for ed25519 keys but now correctly checks public key file/format

- What I did
fixed bug in that RSA ssh keys were not seen as "valid" when using the '-s' flag on sshnp. The original code looked at the ssh public key file the code now looks at the format of the key once returned/processed by the dartssh2 package.
- How I did it
Check on dartssh2 package to which key formats are recognized and put in RgeEx to check those format strings
- How to verify it
Ran tests locally with broken rsa ssh key file which now works
- Description for the changelog
fixed error in ssh key checking when using the -s flag in sshnp

This check worked by blind chance fored25519 keys but now correctly checks public key file/format
@XavierChanth XavierChanth merged commit 609de63 into trunk Dec 14, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants