Problem solving SSH Client Server responded "Algorithm negotiation failed." Solve the SSH Client Server responded "Algorithm negotiation failed." Issue

Problem solving SSH Client Server responded "Algorithm negotiation failed." The

  • Original Address: https: //segmentfault.com/a/1190000005709819
    
            
            
  • This error is ssh server-side configuration algorithm due to lack.
    
            
            
  • 
            
            
    1. # Ssh modify configuration files
    2. vim /etc/ssh/sshd_config
    3. # Allow root user login, the "PermitRootLogin without-password" Change
    4. PermitRootLogin yes
    5. # 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!)
    6. Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr, 3des-cbc,arcfour128,arcfour256,arcfour,blowfish-cbc,cast128-cbc
    7. MACs hmac-md5,hmac-sha1,umac- 64 @openssh.com,hmac-ripemd16 0,hmac-sha1- 96,hmac-md5- 96
    8. 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

    
            
            
    1. ifconfig
    2. Or #
    3. 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 ???

Published 19 original articles · won praise 1 · views 592
  • Original Address: https: //segmentfault.com/a/1190000005709819
    
        
        
  • This error is ssh server-side configuration algorithm due to lack.
    
        
        
  • 
        
        
    1. # Ssh modify configuration files
    2. vim /etc/ssh/sshd_config
    3. # Allow root user login, the "PermitRootLogin without-password" Change
    4. PermitRootLogin yes
    5. # 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!)
    6. Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr, 3des-cbc,arcfour128,arcfour256,arcfour,blowfish-cbc,cast128-cbc
    7. MACs hmac-md5,hmac-sha1,umac- 64 @openssh.com,hmac-ripemd16 0,hmac-sha1- 96,hmac-md5- 96
    8. 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地址

    
        
        
    1. ifconfig
    2. # 或者
    3. ip addr show eth0

    然后根据ip连接就不会再出现此问题了。第一次连接会出现该提示,是否保存key,选择Yes!


连接成功了···

Guess you like

Origin blog.csdn.net/wuyanbei24/article/details/104177271