{"id":3911,"date":"2022-08-20T12:25:45","date_gmt":"2022-08-20T12:25:45","guid":{"rendered":"https:\/\/techsgizmo.com\/pt\/?p=3911"},"modified":"2022-08-20T12:25:45","modified_gmt":"2022-08-20T12:25:45","slug":"como-corrigir-o-erro-no-matching-key-exchange-method-found-no-mac","status":"publish","type":"post","link":"https:\/\/techsgizmo.com\/pt\/como-corrigir-o-erro-no-matching-key-exchange-method-found-no-mac","title":{"rendered":"Como corrigir o erro No Matching Key Exchange Method Found no Mac?"},"content":{"rendered":"<p style=\"text-align: justify\">O erro No Matching Key Exchange Method Found no Mac ocorre quando os usu\u00e1rios tentam usar o SSH para entrar em contato com um servidor remoto fazendo sua tentativa de acess\u00e1-lo sem sucesso. Isso \u00e9 muito frustrante e irritante para os usu\u00e1rios. No entanto, esse erro \u00e9 t\u00e3o comum que muitas vezes voc\u00ea encontrar\u00e1 tipos de UNIX analisando como eles est\u00e3o enfrentando esse problema e dando conselhos sobre como se livrar dele.<\/p>\n<p style=\"text-align: justify\">Na palavra UNIX, esses servidores e clientes SSH s\u00e3o usados \u200b\u200bem diferentes formas e vers\u00f5es. O OpenSSH \u00e9 um deles que permite que os usu\u00e1rios fa\u00e7am login com seguran\u00e7a em um servidor remoto. O OpenSSH \u00e9 atualizado com bastante frequ\u00eancia, mas os clientes podem estar usando uma vers\u00e3o mais antiga e os servidores podem estar em uma vers\u00e3o diferente do que leva ao erro em discuss\u00e3o.<\/p>\n<p style=\"text-align: justify\">Em outros casos, o erro envolve o seguinte: \u201c123.123.123.123 porta 22: nenhum m\u00e9todo de troca de chave correspondente encontrado. A oferta deles: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1\u201d. Verifique as diferentes corre\u00e7\u00f5es fornecidas abaixo e aplique-as no seu Mac para resolver o problema:<\/p>\n<h3 style=\"text-align: justify\">Poss\u00edveis corre\u00e7\u00f5es para o erro No Matching Key Exchange Method Found no Mac<\/h3>\n<h4 style=\"text-align: justify\">Corre\u00e7\u00e3o 1: habilitar m\u00e9todos de troca de chave mais antigos<\/h4>\n<p style=\"text-align: justify\">\u00c0s vezes, os m\u00e9todos de troca de chaves mais antigas usados \u200b\u200bpelos clientes podem ser habilitados pelo servidor para que o erro em discuss\u00e3o n\u00e3o possa mais ser acionado. Voc\u00ea deve seguir as etapas abaixo para reconfigurar a configura\u00e7\u00e3o SSH:<\/p>\n<ul style=\"text-align: justify\">\n<li>Abra o Terminal e execute o comando abaixo para abrir o arquivo de configura\u00e7\u00e3o SSH usando o editor de texto NANO:<\/li>\n<\/ul>\n<blockquote>\n<p style=\"text-align: justify\">sudo nano etc \/ssh \/ssh_config<\/p>\n<\/blockquote>\n<ul style=\"text-align: justify\">\n<li>Para este arquivo de configura\u00e7\u00e3o do OpenSSH, adicione as linhas abaixo para habilitar os m\u00e9todos de troca de chaves mais antigos para este servidor:<\/li>\n<\/ul>\n<blockquote>\n<p style=\"text-align: justify\">KexAlgorithms diffie-hellman-group1-sha1,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14 -sha1 Cifras 3des-cbc,blowfish-cbc,aes128-cbc,aes128-ctr,aes256-ctr<\/p>\n<\/blockquote>\n<ul style=\"text-align: justify\">\n<li>Agora, execute o comando abaixo para salvar as altera\u00e7\u00f5es e gerar novamente as chaves SSH:<\/li>\n<\/ul>\n<blockquote>\n<p style=\"text-align: justify\">ssh-keygen -A<\/p>\n<\/blockquote>\n<ul style=\"text-align: justify\">\n<li>Reinicie o dom\u00ednio SSH e, em seguida, use o comando abaixo e verifique o pr\u00f3ximo se o erro No Matching Key Exchange Method Found no Mac foi resolvido:<\/li>\n<\/ul>\n<blockquote>\n<p style=\"text-align: justify\">reinicializa\u00e7\u00e3o do servi\u00e7o ssh<\/p>\n<\/blockquote>\n<h4 style=\"text-align: justify\">Corre\u00e7\u00e3o 2: use PuTTY<\/h4>\n<p style=\"text-align: justify\">PuTTY \u00e9 uma alternativa para o cliente SSH. Funciona melhor com m\u00e9todos de troca de chaves. Portanto, recomendamos que voc\u00ea o use em vez do cliente atual e veja se isso funciona para voc\u00ea. Para instal\u00e1-lo no seu Mac, voc\u00ea deve iniciar o terminal e executar o comando abaixo:<\/p>\n<blockquote>\n<p style=\"text-align: justify\">sudo apt install putty<\/p>\n<\/blockquote>\n<h4 style=\"text-align: justify\">Corre\u00e7\u00e3o 3: Ativar SHA-1<\/h4>\n<p style=\"text-align: justify\">Se o erro No Matching Key Exchange Method Found no Mac permanecer, recomendamos que voc\u00ea siga as solu\u00e7\u00f5es alternativas abaixo que certamente o ajudar\u00e3o a resolver esse problema para voc\u00ea:<\/p>\n<ul style=\"text-align: justify\">\n<li>Abra o Terminal e use o comando abaixo para abrir o arquivo de configura\u00e7\u00e3o SSH usando o editor de texto NANO:<\/li>\n<\/ul>\n<blockquote>\n<p style=\"text-align: justify\">sudo nano \/etc \/ssh \/ssh_config<\/p>\n<\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-7885 aligncenter\" src=\"https:\/\/techsgizmo.com\/wp-content\/uploads\/2022\/08\/2-51-300x210.png\" alt=\"\" width=\"300\" height=\"210\" \/><\/p>\n<ul style=\"text-align: justify\">\n<li>Certifique-se de navegar por este arquivo at\u00e9 ver as linhas abaixo:<\/li>\n<\/ul>\n<blockquote>\n<p style=\"text-align: justify\">MACs hmac-md5,hmac-sha1, umac-64@openssh.com,hmac-ripemd160<\/p>\n<\/blockquote>\n<ul style=\"text-align: justify\">\n<li>A partir daqui, remova # e substitua por isso:<\/li>\n<\/ul>\n<blockquote>\n<p style=\"text-align: justify\">MACs hmac-md5,hmac-sha1,hmac-sha2-256,umac-64@openssh.com,hmac-ripemd160<\/p>\n<\/blockquote>\n<ul style=\"text-align: justify\">\n<li>Remova # de seu in\u00edcio tamb\u00e9m e localize a linha abaixo:<\/li>\n<\/ul>\n<blockquote>\n<p style=\"text-align: justify\">Cifras aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc<\/p>\n<\/blockquote>\n<ul style=\"text-align: justify\">\n<li>Agora, copie e cole o seguinte no final para concluir a configura\u00e7\u00e3o do arquivo:<\/li>\n<\/ul>\n<blockquote>\n<p style=\"text-align: justify\">HostkeyAlgorithms ssh-dss,ssh-rsa<\/p>\n<p style=\"text-align: justify\">KexAlgorithms +diffie-hellman-group1-sha1,diffie-hellman-group14-sha1<\/p>\n<\/blockquote>\n<ul style=\"text-align: justify\">\n<li>Salve-o e saia do editor Nano,<\/li>\n<li>Verifique se isso corrigiu o erro No Matching Key Exchange Method Found no Mac.<\/li>\n<\/ul>\n<h5 style=\"text-align: justify\">Conclus\u00e3o<\/h5>\n<p style=\"text-align: justify\">Isso \u00e9 tudo! Agora, estamos encerrando nosso artigo sobre como corrigir o erro No Matching Key Exchange Method Found. Espero que essas corre\u00e7\u00f5es sejam \u00fateis para voc\u00ea se livrar do problema do seu Mac. Comente abaixo em caso de d\u00favidas, perguntas e sugest\u00f5es sobre o artigo.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>O erro No Matching Key Exchange Method Found no Mac ocorre quando os usu\u00e1rios tentam usar o SSH para entrar em contato com um servidor remoto fazendo sua tentativa de &hellip; <\/p>\n","protected":false},"author":8,"featured_media":3912,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[1884],"class_list":["post-3911","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mac","tag-nenhum-metodo-de-troca-de-chave-correspondente-foi-encontrado-no-mac"],"_links":{"self":[{"href":"https:\/\/techsgizmo.com\/pt\/wp-json\/wp\/v2\/posts\/3911","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techsgizmo.com\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techsgizmo.com\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techsgizmo.com\/pt\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/techsgizmo.com\/pt\/wp-json\/wp\/v2\/comments?post=3911"}],"version-history":[{"count":0,"href":"https:\/\/techsgizmo.com\/pt\/wp-json\/wp\/v2\/posts\/3911\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techsgizmo.com\/pt\/wp-json\/wp\/v2\/media\/3912"}],"wp:attachment":[{"href":"https:\/\/techsgizmo.com\/pt\/wp-json\/wp\/v2\/media?parent=3911"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techsgizmo.com\/pt\/wp-json\/wp\/v2\/categories?post=3911"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techsgizmo.com\/pt\/wp-json\/wp\/v2\/tags?post=3911"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}