pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://docs.github.com/pt/authentication/troubleshooting-ssh/error-bad-file-number

path-product" content="authentication" data-next-head=""/>
Skip to main content

Erro: número de arquivo inadequado

Este erro normalmente significa que você não conseguiu se conectar ao servidor. Quase sempre isso é causado por firewalls e servidores proxy.

Neste artigo

Ao executar comandos Git remotos ou SSH, a conexão pode sofrer timeout:

$ ssh -vT git@github.com
> OpenSSH_8.1p1, LibreSSL 2.7.3
> debug1: Connecting to github.com [207.97.227.239] port 22.
> debug1: connect to address 207.97.227.239 port 22: Connection timed out
> ssh: connect to host github.com port 22: Connection timed out
> ssh: connect to host github.com port 22: Bad file number

Resolver o problema

Utilize o HTTPS

Geralmente, a solução mais simples é simplesmente evitar SSH por completo. A maioria dos firewalls e proxies permite tráfego HTTPS sem problemas. Para aproveitar isso, altere a URL remota que está sendo usada:

$ git clone https://github.com/USERNAME/REPO-NAME.git
> Cloning into 'reponame'...
> remote: Counting objects: 84, done.
> remote: Compressing objects: 100% (45/45), done.
> remote: Total 84 (delta 43), reused 78 (delta 37)
> Unpacking objects: 100% (84/84), done.

Testar em outra rede

Se você conectar o computador a outra rede que não tem firewall, conseguirá testar sua conexão SSH com o GitHub. Se tudo funcionar como deveria, entre em contato o administrador de rede para saber como alterar as configurações do firewall para estabelecer a conexão SSH com êxito.

Usar SSH na porta HTTPS

Se o uso de HTTPS não for uma opção e o administrador do firewall se recusar a permitir conexões SSH, experimente usar o SSH na porta HTTPS.

Leitura adicional

  • AUTOTITLE
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy