Posh-SSH: New-SShSession : using keys - Key exchange negotiation failed

Hello, I am having a hard time trying to use key to authenticate… So far:

New-SShSession : Invalid private key file Means you can’t use putty key generator format. May be added as text “(ensure you are not using only open SSH format)”.

New-SShSession : Key ‘OPENSSH’ is not supported When trying to use key, I tried from Putty to create the new OpenSSH format.

New-SShSession : Key exchange negotiation failed. Using standard open SSH export format, I am stuck with this one. If using key through Putty and native .ppk format, connection works. I tried verbose mode for this cmdlet, but not providing more info.

On the other side, after setting sshd in debug log, I only see this:

==> secure <== Mar 20 14:53:18 radius sshd[29875]: debug1: SSH2_MSG_NEWKEYS sent Mar 20 14:53:18 radius sshd[29875]: debug1: expecting SSH2_MSG_NEWKEYS

Can someone help ? Thanks in advance,

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 22 (10 by maintainers)

Most upvoted comments

Yep, as soon as SSH.Net http://ssh.net/ fixes some stuff in the next 2 weeks I will have an updated version that should support the newer format

On Apr 8, 2020, at 11:34 AM, Mathieu Chateau notifications@github.com wrote:

@odon-noda https://github.com/odon-noda : you can only use old format for keys as far as I know

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/darkoperator/Posh-SSH/issues/315#issuecomment-611029079, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAD7IHRSQVQX5L6H6Y4ABWDRLSKPZANCNFSM4LQM33KA.

@odon-noda : you can only use old format for keys as far as I know