ProgrammerAH

Programmer Guide, Tips and Tutorial

Skip to content

[Solved] secureCRT Failed to Login Ubuntu20.04 Error: Key exchange failed

Title SecureCRT login ubuntu20.04 prompt “key exchange failed” error

When using ubuntu2004, an error will be reported when using the old version of SecureCRT to connect via SSH, as follows:

Key exchange failed.
No compatible key exchange method. The server supports these methods: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256

To solve this problem, the solution is as follows:
1. Modify ssh_config
Find the following two lines in this file and remove the # in front of them

vim /etc/ssh/ssh_config

2. modify sshd_config

    add the following contents to this file
vim /etc/ssh/sshd_config

KexAlgorithms [email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1

3. Restart sshd service

systemctl restart sshd

 

This entry was posted in Linux and tagged secureCRT Failed to Login Ubuntu20.04 Error on 2022-07-14 by Robins.

Post navigation

← [Solved] Vue3.2 component computed Error: Write operation failed: computed value is readonly [Solved] Jedis connect and operate Redis error: Failed to create socketĺ’Śconnect timed out →

Recent Posts

  • MAFIA: 1- OpenFlow statistics (Counters, Timestamps)(mafia-sdn/p4demos/demos/1-openflow/1.1-statistics/p4src/of.p4)
  • LDSC: Could not open Corces_ATAC_1000Gv3_ldscores/Corces_ATAC.1.1.l2.ldscore[./gz/bz2]
  • Gradle Package Project Lombok Not Working: No serializer found for class com.qbb.User and no properties discovered to create BeanSerializer……
  • [Solved] PCH Warning: header stop not at file scope
  • pymysql Error: File “/usr/local/lib/python2.7/site-packages/PyMySQL-1.0.2-py2.7.egg/pymysql/connections.py”, line 167 SyntaxError: invalid syntax
Proudly powered by WordPress