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

feat(auth): ssh private key auth implemented via config.json #161

Merged
merged 1 commit into from
Nov 15, 2019

Conversation

billchurch
Copy link
Owner

If config.json is present and user.privatekey has an ssh-rsa private key defined as well as a user.name, the SSH server will staticlly authenticate to whatever host is specified on the URL with those credentials.

The ssh-rsa private key must have is line returns replaced with the litaral \n

Example: "-----BEGIN RSA PRIVATE KEY-----\nblahblahblah\n"
fixes #160 #139

If config.json is present and user.privatekey has an ssh-rsa private key defined as well as a user.name, the SSH server will staticlly authenticate to whatever host is specified on the URL with those credentials.

The ssh-rsa private key must have is line returns replaced with the litaral \n

Example: "-----BEGIN RSA PRIVATE KEY-----\nblahblahblah\n"
@billchurch billchurch merged commit 342df8e into master Nov 15, 2019
@vkhurana
Copy link

Is there a reason this isn't documented in the readme.md? I'd be happy to make a PR to add it in there. Beats digging around to see if key auth is supported :)

@billchurch
Copy link
Owner Author

No reason, feel free I'll take a PR for it, thanks!

hktalent pushed a commit to hktalent/webssh2 that referenced this pull request Jun 3, 2022
…rch#161)

If config.json is present and user.privatekey has an ssh-rsa private key defined as well as a user.name, the SSH server will staticlly authenticate to whatever host is specified on the URL with those credentials.

The ssh-rsa private key must have is line returns replaced with the litaral \n

Example: "-----BEGIN RSA PRIVATE KEY-----\nblahblahblah\n"
hktalent pushed a commit to hktalent/webssh2 that referenced this pull request Jun 3, 2022
…rch#161)

If config.json is present and user.privatekey has an ssh-rsa private key defined as well as a user.name, the SSH server will staticlly authenticate to whatever host is specified on the URL with those credentials.

The ssh-rsa private key must have is line returns replaced with the litaral \n

Example: "-----BEGIN RSA PRIVATE KEY-----\nblahblahblah\n"
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.

rfe: ssh-rsa private-key auth
2 participants