Skip to content

Instantly share code, notes, and snippets.

@mr4torr
Last active December 8, 2022 18:38
Show Gist options
  • Save mr4torr/459d0d6ed39ebe1381e81dbbb6f4eb1c to your computer and use it in GitHub Desktop.
Save mr4torr/459d0d6ed39ebe1381e81dbbb6f4eb1c to your computer and use it in GitHub Desktop.
NET não libera a porta 22 e impede de acessar por ssh github/bitbucket

Usar ssh do github e do bitbucket com wifi do netcombo /netvirtua

A NET só libera o uso de qualquer porta, como a porta 22 de ssh, para pessoa jurídica em seus novos planos (desde 2016).

Para conseguir usar o github ou bitbucket por ssh com plano de internet da NET para pessoa física, é necessário:

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 git@github.com
Hi @username! You've successfully authenticated, but GitHub does not
provide shell access.

Conferir se no bitbucket funcionou:

ssh -T git@bitbucket.org
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 git@gitlab.com
Welcome to GitLab, @username!
@raulmelo
Copy link

Ajudou bastante, funcionou.

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