Problem solving SSH Client Server responded "Algorithm negotiation failed." The
Posted on 2018-04-20 15:21:24
- Original Address: https: //segmentfault.com/a/1190000005709819
- This error is ssh server-side configuration algorithm due to lack.
-
# Ssh modify configuration files
-
vim /etc/ssh/sshd_config
-
-
# Allow root user login, the "PermitRootLogin without-password" Change
-
PermitRootLogin yes
-
-
# Add the following in the configuration file (except the last one is the third article of gray plus purple, the other is blue, gray if it is not quite right!)
-
Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr, 3des-cbc,arcfour128,arcfour256,arcfour,blowfish-cbc,cast128-cbc
-
-
MACs hmac-md5,hmac-sha1,umac- 64 @openssh.com,hmac-ripemd16 0,hmac-sha1- 96,hmac-md5- 96
-
-
KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1,curve25519-sha256 @libssh.org
-
After saving and exiting restart sshd service
sudo service ssh restart
Query ip address
-
ifconfig
-
Or #
-
ip addr show eth0
Then this problem will not happen again, according to ip connection. The first time you connect the prompt will appear, whether to save the key, select Yes!
-
The connection is successful ???
- Original Address: https: //segmentfault.com/a/1190000005709819
- This error is ssh server-side configuration algorithm due to lack.
-
# Ssh modify configuration files
-
vim /etc/ssh/sshd_config
-
-
# Allow root user login, the "PermitRootLogin without-password" Change
-
PermitRootLogin yes
-
-
# Add the following in the configuration file (except the last one is the third article of gray plus purple, the other is blue, gray if it is not quite right!)
-
Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr, 3des-cbc,arcfour128,arcfour256,arcfour,blowfish-cbc,cast128-cbc
-
-
MACs hmac-md5,hmac-sha1,umac- 64 @openssh.com,hmac-ripemd16 0,hmac-sha1- 96,hmac-md5- 96
-
-
KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1,curve25519-sha256 @libssh.org
-
保存并退出后重启sshd服务
sudo service ssh restart
查询ip地址
-
ifconfig
-
# 或者
-
ip addr show eth0
然后根据ip连接就不会再出现此问题了。第一次连接会出现该提示,是否保存key,选择Yes!
-
连接成功了···