Skip to content

Instantly share code, notes, and snippets.

@digitalbocca
Last active February 22, 2017 18:25
Show Gist options
  • Save digitalbocca/cb0ecf14a679dfc751349840042b9da9 to your computer and use it in GitHub Desktop.
Save digitalbocca/cb0ecf14a679dfc751349840042b9da9 to your computer and use it in GitHub Desktop.
Resolvendo Problemas de Conexão SSH e Como Ver Sua Chave Pública

#Resolvendo Problemas de Conexão SSH#

####ERRO####

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

####RESOLVENDO NO TERMINAL####

ssh -oHostKeyAlgorithms=+ssh-dss usuario@host

####DIRETAMENTE NA PASTA .ssh####

  • Abrir o Arquivo .ssh/config
  • Adicionar as Seguintes Linhas:
Host exemplo.com
HostkeyAlgorithms +ssh-dss

####BÔNUS####

  • Para Ver Sua Chave Pública no Terminal:
cat 'caminho/do/arquivo/id_rsa.pub'

Gabriel Bertola Bocca <gabriel at estudiodigitalbocca.com.br>

(c) 2017 - Estúdio Digital Bocca

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment