【问题标题】:unable to access 'https://github.com/AFNetworking/AFNetworking.git/': Unknown SSL protocol error in connection to github.com:-9847无法访问“https://github.com/AFNetworking/AFNetworking.git/”:连接到 github.com:-9847 时出现未知 SSL 协议错误
【发布时间】:2016-08-05 09:19:18
【问题描述】:

当我最近从github克隆时,终端输出是“致命:无法访问'https://github.com/AFNetworking/AFNetworking.git/':与github.com连接时出现未知的SSL协议错误:-9847”,并且之前可以正常工作,怎么了?

【问题讨论】:

    标签: git macos github


    【解决方案1】:

    这可能来自不同的东西:

    • 很可能 github 升级了他们支持的密码套件,你需要升级你的 git 版本。

    • 您和 github 服务器之间存在一个活动代理,并且使用的是过时的 SSL 版本。你运气不好。

    此外,它尝试连接到 github.com (-9847) 的端口似乎有点奇怪。这可能是某种配置文件损坏。仔细检查您的git config -l

    【讨论】:

    • 感谢您的回答。我使用了VPN,也许这就是问题的原因。当我退出 VPN 并再次尝试克隆时,这里是日志:“致命:无法访问 'github.com/AFNetworking/AFNetworking.git':无法连接到 github.com 端口 443:操作超时”。怎么了?
    • 这里贴上我git config -l的日志: core.excludesfile=~/.gitignore core.legacyheaders=false core.quotepath=false core.pager=less -r mergetool.keepbackup=true push .default=simple color.ui=auto color.interactive=auto repack.usedeltabaseoffset=true
    • alias.s=status alias.a=!git add . && git status alias.au=!git add -u 。 && git status alias.aa=!git add . && 混帐添加 -u 。 && git status alias.c=commit alias.cm=commit -m alias.ca=commit --amend alias.ac=!git add . && git commit alias.acm=!git add . && git commit -m alias.l=log --graph --all --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(wh​​ite)- %an, %ar%Creset'
    • alias.ll=log --stat --abbrev-commit alias.lg=log --color --graph --pretty=format:'%C(bold white)%h%Creset - %C(粗体绿色)%d%Creset %s %C(粗体绿色)(%cr)%Creset %C(粗体蓝色)%Creset' --abbrev-commit --date=relative alias.llg =log --color --graph --pretty=format:'%C(加粗白色)%H %d%Creset%n%s%n%+b%C(加粗蓝色)%an %Creset %C(粗体绿色)%cr (%ci)' --abbrev-commit
    • alias.d=diff alias.master=checkout master alias.spull=svn rebase alias.spush=svn dcommit alias.alias=!git config --list | grep '别名\。' | sed 's/别名\.([^=]*)=(.*)/\1\ => \2/'​​ | sort include.path=~/.gitcinclude include.path=.githubconfig include.path=.gitcredential diff.exif.textconv=exif credential.helper=osxkeychain filter.lfs.clean=git-lfs clean %f filter.lfs.smudge =git-lfs smudge %f filter.lfs.required=true user.name=MyNameIsWood user.email=liubaishan_ios@163.com http.sslverify=false
    猜你喜欢
    • 2017-09-06
    • 1970-01-01
    • 2019-03-14
    • 2016-04-22
    • 1970-01-01
    • 2016-03-09
    • 2018-12-16
    • 1970-01-01
    • 2013-04-16
    相关资源
    最近更新 更多