question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New-SShSession : using keys - Key exchange negotiation failed

See original GitHub issue

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,

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
darkoperatorcommented, Apr 8, 2020

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.

1reaction
mathieuchateaucommented, Apr 8, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

New-SSHSession : Key exchange negotiation failed. ...
Ensure the target server is not using elliptic curve keys. Some Linux distros have moved to them but SSH.Net library does not support...
Read more >
Key Exchange Negotiation Failed after updating to Velocity ...
SSH handshake failure is happening in Velocity 2.1.25 because the key alogrithm has been updated to reflect industry standards to ED25519 (as ...
Read more >
Key exchange negotiation failed - Power Platform Community
Getting "Key exchange negotiation failed" error in flow. Using ssh-rsa algorithm, I have tried with and without "ssh-rsa 2048" in.
Read more >
Posh-SSH: Issue on creating New-SSHSession using P...
I am creating new session in ESXi hosts as well as VCenter hosts using Posh-SSH module with root credential. and after copying public...
Read more >
SSH.NET Library - RSSing.com
But, by this time, the KeyExchange negotiation is over and failed and so the conneciton also fails. The remedy that has been tested...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found