相关疑难解决方法(0)

Git SSH错误:"连接到主机:错误的文件号"

我按照git指南但在尝试连接到github时遇到了这个奇怪的问题:

$ ssh -v git@github.com
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Reading configuration data /c/Documents and Settings/mugues/.ssh/config
debug1: Applying options for github.com
debug1: Connecting to github.com [207.97.227.239] port 22.
debug1: connect to address 207.97.227.239 port 22: Attempt to connect timed out without establishing a connection
ssh: connect to host github.com port 22: Bad file number
Run Code Online (Sandbox Code Playgroud)

这是我在.ssh下的配置文件

Host github.com
    User git
    Hostname github.com
    PreferredAuthentications publickey
    IdentityFile "C:\Documents and Settings\mugues\.ssh\id_rsa"
    TCPKeepAlive yes
    IdentitiesOnly yes
Run Code Online (Sandbox Code Playgroud)

任何的想法?

git ssh github

153
推荐指数
5
解决办法
18万
查看次数

GitHub - HTTPS访问

我无法通过HTTPS克隆我的存储库:

$ git clone https://github.com/walterjwhite/project.configuration.git
Initialized empty Git repository in ./project.configuration/.git/
error: Failed connect to github.com:443; Connection refused while accessing https://github.com/walterjwhite/project.configuration.git/info/refs
fatal: HTTP request failed
Run Code Online (Sandbox Code Playgroud)

我已经使用我的登录名和密码以及我连接的机器或服务器配置了.netrc.

git https github

39
推荐指数
2
解决办法
9万
查看次数

标签 统计

git ×2

github ×2

https ×1

ssh ×1