Skip to content

Instantly share code, notes, and snippets.

@MarcosSarges
Created June 4, 2021 17:29
Show Gist options
  • Save MarcosSarges/ad746e3785e549cbea797f4c73aca996 to your computer and use it in GitHub Desktop.
Save MarcosSarges/ad746e3785e549cbea797f4c73aca996 to your computer and use it in GitHub Desktop.
Arquivo de configuração para resolver problemas de conexão com ssh do github, bitbucket, gitlab...

Criar o arquivo ~/.ssh/config e adicionar:

Host github.com
   Hostname ssh.github.com
   Port 443
Host bitbucket.org
   Hostname altssh.bitbucket.org
   Port 443
Host gitlab.com
  Hostname altssh.gitlab.com
  Port 443   

Conferir se no github funcionou:

ssh -T [email protected]
Hi @username! You've successfully authenticated, but GitHub does not
provide shell access.

Conferir se no bitbucket funcionou:

ssh -T [email protected]
logged in as @username. 

You can use git or hg to connect to Bitbucket. Shell access is disabled.

Conferir se no gitlab funcionou:

ssh -T [email protected]
Welcome to GitLab, @username!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment