Git Clone错误解决:GnuTLS recv error(-110):The TLS connection was non-properly terminated.
问题详述
在用SSH操作远程服务器克隆git仓库时遇到报错:
fatal: unable to access 'https://github.com/cocodataset/cocoapi.git/': GnuTLS recv error (-110): The TLS connection was non-properly terminated.
解决方式(参考 文章)
apt-get install gnutls-bin
git config --global http.sslVerify false
git config --global http.postBuffer 1048576000
随后重启SSH,多重复几次(网络连接可能不稳定),最后成功下载:
Cloning into 'cocoapi'...
remote: Enumerating objects: 975, done.
remote: Total 975 (delta 0), reused 0 (delta 0), pack-reused 975
Receiving objects: 100% (975/975), 11.72 MiB | 1.06 MiB/s, done.
Resolving deltas: 100% (576/576), done.