How to fix error: The SSH session has terminated with error. Reason: Error class: LocalSshDisconn, code: KeyExchangeFailed


ssh login error

Bitvise Tunnelier
Login SSH by Bitvise Tunnelier and got the error:

The SSH session has terminated with error. Reason: Error class: LocalSshDisconn, code: KeyExchangeFailed, message: FlowSshTransport: no mutually supported key exchange algorithm. Local list: diffie-hellman-group14-sha1,diffie-hellman-group1-sha1. Remote list: Curve25519,Curve25519@libssh,ECDH/nistp256,ECDH/nistp384,ECDH/nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256.

You must change key exchange:
change key exchange

Tick almost required algorithms saw in error message :

Curve25519,Curve25519@libssh,ECDH/nistp256,ECDH/nistp384,ECDH/nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256

change key exchange algorithms

Click OK. Done, now we can login SSH successfully.

Putty 0.63
Similarly, we will get the error by using Putty:

---------------------------
PuTTY Fatal Error
---------------------------
Couldn't agree a key exchange algorithm (available: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256)
---------------------------
OK   
---------------------------

putty login error

You should update Putty 0.74
Download for windows 64bits: https://the.earth.li/~sgtatham/putty/0.74/w64/putty.exe

Recent search terms:

  • https://tutorialspots com/how-to-fix-error-the-ssh-session-has-terminated-with-error-reason-error-class-localsshdisconn-code-keyexchangefailed-6443 html
  • the ssh connection has been terminated

Leave a Reply