DicasLinux

RESOLVIDO Unable to negotiate with 10.0.1.71 port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,kexguess2@matt.ucc.asn.auErro

O OpenSSH possui todos os algoritmos criptográficos necessários para funcionar com outras implementações SSH que seguem padrões. No entanto, devido a preocupações com a segurança, alguns algoritmos mais antigos não estão ativados por padrão. Esta página explica como lidar quando o OpenSSH não se conecta a uma implementação que só suporta algoritmos mais antigos.

A melhor forma de corrigir essas falhas é atualizar o software na outra ponta e/ou trocar chaves fracas por tipos mais seguros e modernos. O OpenSSH desativa apenas os algoritmos que não recomendamos, pois são considerados fracos. Em alguns casos, pode não ser possível fazer isso imediatamente, então pode ser necessário temporariamente reativar os algoritmos fracos para manter o acesso.

Se o cliente e o servidor não conseguirem concordar sobre um conjunto comum de parâmetros, a conexão será interrompida. O OpenSSH (versão 7.0 ou superior) exibirá uma mensagem de erro semelhante a esta:

Unable to negotiate with 10.0.1.71 port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,kexguess2@matt.ucc.asn.auErro

No caso da mensagem de erro mencionada anteriormente, é possível configurar o OpenSSH para ativar o algoritmo de troca de chaves diffie-hellman-group1-sha1 (ou qualquer outro desativado por padrão) utilizando a opção KexAlgorithms,na linha de comando:

ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 user@legacyhost

ou mais permanentemente, adicionando no arquivo ~/.ssh/config:

Host algumhost.exemplo.org
    KexAlgorithms +diffie-hellman-group1-sha1

Mais um outro exemplo ocorre quando o cliente e o servidor não conseguem concordar sobre um algoritmo de chave pública para autenticação do host:

Unable to negotiate with legacyhost: no matching host key type found. Their offer: ssh-dss

O OpenSSH 7.0 e versões posteriores desativam da mesma forma o algoritmo de chave pública ssh-dss (DSA), pois também é considerado fraco, e desencorajamos o seu uso. É possível reativá-lo utilizando a opção de configuração HostKeyAlgorithms:

ssh -oHostKeyAlgorithms=+ssh-dss usuario@hostlegado

ou mais permanentemente, adicionando no arquivo ~/.ssh/config:

Host algumhost.exemplo.org
    HostKeyAlgorithms +ssh-dss

Dependendo da configuração do servidor, outros parâmetros de conexão podem não ser negociados com sucesso. Você pode achar úteis as opções de configuração Ciphers e/ou MACs para habilitar esses parâmetros. Também é possível verificar quais algoritmos o SSH suporta.

 ssh -Q cipher # Lista as cifras suportadas

 ssh -Q mac # Lista MACs suportados

 ssh -Q key # Lista os tipos de chave pública suportados

 ssh -Q kex # Lista algoritmos de troca de chaves suportados

Para Debugar melhor os problemas também é possível consultar a configuração que o ssh está realmente usando ao tentar se conectar a um host específico, usando a opção -G:

ssh -G usuario@algumhost.exemplo.com

que listará todas as opções de configuração, incluindo os valores escolhidos para os parâmetros Ciphers,MACs,HostKeyAlgorithms e KexAlgorithms.

33 thoughts on “RESOLVIDO Unable to negotiate with 10.0.1.71 port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,kexguess2@matt.ucc.asn.auErro

  • Navigating the AI landscape just got easier with platforms like tyy.AI Tools. Their curated list of over 500+ tools is a goldmine for professionals. Check out their AI Chat tools for real-time insights!

    Resposta
  • Hey, has anyone tried the sv388app? I would recommedn to download this bad boi. If you would like to see, here it is: sv388app

    Resposta
  • Heard some good things about Taib29 so I decided to give it a whirl. Not disappointed! Good selection of games and the site loads fast. Definitely worth checking out taib29

    Resposta
  • 100jilislot is quickly becoming my go-to spot for online slots. The selection is insane, and I actually hit a small jackpot last week! Give it a whirl and maybe you’ll be lucky too! Check out 100jilislot!

    Resposta
  • PH3333: The Best Online Casino in the Philippines. Easy Login, Register, and App Download for Premium Slots and Big Wins! Join PH3333, the best online casino in the Philippines. Quick ph3333 login, easy ph3333 register, and ph3333 app download. Play premium ph3333 slot games and win big! visit: ph3333

    Resposta
  • 039bet is alright, you know? It has a decent selection of games. I’ve only tried it a few times, but the interface isn’t bad. Worth a look if you’re looking for a new place to try your luck. See for yourself at 039bet.

    Resposta
  • Trying my luck at Banca30T88! Decent interface and easy to navigate. Fingers crossed for a big win! Check it out: banca30t88

    Resposta
  • Been on 123Vin recently. The site runs smoothly and they offer a pretty wide array of games. Take a peek at 123vin!

    Resposta
  • 888riovip, eh? Sounds kinda fancy! I’m feeling lucky, so I’m gonna give it a go. Might be my new favorite spot! 888riovip

    Resposta
  • Alright, pokers fans check this out. Heard of gamebatpkr. Looks like a new place to play some cards. Let’s see what the community says gamebatpkr.

    Resposta
  • Anyone know anything about u888abc? Bumping into it everywhere and was wondering if its worth to check it out u888abc.

    Resposta
  • Yo, check out djbetcom! It’s the real deal. I’ve been having some lucky streaks there lately. Give djbetcom a shot, you might just score big!

    Resposta
  • Yo, 10jililogin? That’s my go-to spot when I just wanna chill and maybe win a few pesos. Honestly, it’s pretty straightforward. Check it out, might be your lucky day! Just sayin’. Check it out at 10jililogin

    Resposta
  • 2jbet, huh? I’ve heard whispers. Seems like a real player’s spot. If you’re feeling lucky, maybe take a peek. You never know what you might find! Wanna try something new? Try 2jbet

    Resposta
  • Alright alright, 12vegas is calling my name! Heard good things. Gonna try my luck and see what’s up. Fingers crossed for a big win! 12vegas

    Resposta
  • [8606]PHLRuby Online Casino: Easy Login, Register & Download the Slot App APK for the Best Gaming Experience in the Philippines. Join PHLRuby Online Casino for the best gaming in the Philippines! Fast PHLRuby login, easy register, and PHLRuby download APK for the top slot app. Play today! visit: phlruby

    Resposta
  • [4645]777phl Online Casino Philippines: Easy 777phl Login, Register & App Download for Premium Slots. Experience the ultimate 777phl Online Casino Philippines! Enjoy easy 777phl login and register today for premium 777phl slots. Get the 777phl app download now to play and win big on the go! visit: 777phl

    Resposta
  • Logging into a188login is a breeze. No more struggling with passwords! Simple, straightforward, and gets you right into the action. Thumbs up! a188login

    Resposta
  • ih777com has some interesting promos running right now. Worth a look if you’re hunting for some extra value. Just sayin’! ih777com

    Resposta
  • Lasbet Casino? If you’re specifically looking for casino games, then Lasbet is worth a shot. Good range of options from slots to table games. Check it out lasbet casino.

    Resposta
  • Alright, so q345e is on the list. Not too shabby, gives you a few options to keep busy. Have at it right here: q345e

    Resposta

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *

YouTube
YouTube
Facebook
Facebook