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

Add support for StrictHostKeyChecking and UserKnownHostsFile #386

Merged
merged 3 commits into from
Nov 22, 2024

Conversation

snaggen
Copy link
Contributor

@snaggen snaggen commented Nov 21, 2024

As I realize I use StrictHostKeyChecking and UserKnownHostsFile in some of my .ssh/config files, I have added support for them in russh-config.

@snaggen
Copy link
Contributor Author

snaggen commented Nov 21, 2024

I noticed that id files can be specified as:

    IdentityFile '~/.ssh/id_ed25519_sk'

So I included support for stripping the surrounding ' characters

russh-config/src/lib.rs Outdated Show resolved Hide resolved
russh-config/src/lib.rs Outdated Show resolved Hide resolved
@snaggen
Copy link
Contributor Author

snaggen commented Nov 22, 2024

I have broken out the functions (did it as traits on &str to make it nice and clean in the match statement), and I also added some tests to ensure things works as expected

@Eugeny
Copy link
Owner

Eugeny commented Nov 22, 2024

Thank you! @all-contributors add @snaggen for code

Copy link
Contributor

@Eugeny

I've put up a pull request to add @snaggen! 🎉

@Eugeny Eugeny merged commit 68fff93 into Eugeny:main Nov 22, 2024
6 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.

2 participants