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

openssh key type: ssh-rsa is not supported #388

Closed
AndrewRRoe opened this issue Apr 15, 2021 · 6 comments
Closed

openssh key type: ssh-rsa is not supported #388

AndrewRRoe opened this issue Apr 15, 2021 · 6 comments

Comments

@AndrewRRoe
Copy link

AndrewRRoe commented Apr 15, 2021

Having trouble using priv/pub key to connect using Posh-ssh. I was under the impression RSA keys were supported - I am using rsa ssh2 4096 bit key. Any help would be appreciated.

POSH-SSH Version - Manifest 3.0.0 beta1 Posh-SSH

new-session command throws this error:

"new-sshsession : openssh key type: ssh-rsa is not supported"

command resembles - new-sshsession -computername mysystem -Credential $cred -KeyFile C:\users\jondoe\Documents\SSH_KEY_PRIV.pem

$cred = get-credential ( values supplied are usrename and private key pass phrase)

@darkoperator
Copy link
Owner

darkoperator commented Apr 15, 2021 via email

@AndrewRRoe
Copy link
Author

Thank you I didn't realize that ....

@et1975
Copy link

et1975 commented Oct 1, 2021

@darkoperator Sorry, if I understand it correctly sshnet/SSH.NET#883 was supposed to have solved this issue? And if I understand your comment there 3.0 release is including it and should have this issue addressed?
I'm just confused cause I'm still seeing this with posh-ssh 3.0.0

@darkoperator
Copy link
Owner

darkoperator commented Oct 1, 2021 via email

@wbloos
Copy link

wbloos commented Nov 3, 2021

Looked up how to create "the old format" (PEM) on a linux machine:
$ ssh-keygen -m PEM -t rsa -b 4096

@darkoperator
Copy link
Owner

darkoperator commented Jul 19, 2022 via email

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

No branches or pull requests

4 participants