Skip to content

Add SSH key authentication with keypath#32

Open
DeniedPyro wants to merge 5 commits intoJuliaWeb:masterfrom
DeniedPyro:dp/keyauth
Open

Add SSH key authentication with keypath#32
DeniedPyro wants to merge 5 commits intoJuliaWeb:masterfrom
DeniedPyro:dp/keyauth

Conversation

@DeniedPyro
Copy link
Copy Markdown

@DeniedPyro DeniedPyro commented Feb 17, 2026

I saw that the library lacked a high level wrapper for key authentication, I've only added one that uses the filepath of the key!
Feel free to add changes/suggestions!

Use case:

import LibSSH as ssh

session = ssh.Session("foo.com")
key_file = expanduser("~/.ssh/id_ed25519")
ssh.userauth_publickey_file(session, key_file)
close(session)

@DeniedPyro
Copy link
Copy Markdown
Author

DeniedPyro commented Feb 17, 2026

I can't really run automatic tests on this, since DemoServer only accepts password authentication.

I also can't assign a reviewer on this, @JamesWrigley if you have time to look through it, it would be really appreciated:)

@JamesWrigley
Copy link
Copy Markdown
Member

Hmm looks like there are some other issues in CI. Probably unrelated to your change though. I'll have a go at fixing CI in the next couple of weeks (but feel free to bump this if I forget 😛).

@DeniedPyro DeniedPyro changed the title Add SSH key authentification with keypath Add SSH key authentication with keypath Feb 18, 2026
@JamesWrigley
Copy link
Copy Markdown
Member

Quick update, #33 is close to being ready so I'll try to finish that first, and then rebasing this PR should get CI in the green again.

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