简体   繁体   English

Windows10 git clone https://github.com/ktbyers/netmiko” 致命错误

[英]Windows10 git clone https://github.com/ktbyers/netmiko&#8221 Fatal error

I'm getting a lot of ssl errors following these instructions ( https://www.jaacostan.com/2018/09/how-to-install-netmiko-on-windows.html ) to install python with netmiko on Windows 10 on our corp network.按照这些说明( https://www.jaacostan.com/2018/09/how-to-install-netmiko-on-windows.html )在 Windows 10 上使用 netmiko 安装 python 时,我遇到了很多 ssl 错误我们的公司网络。

I know our browser has Aries Root cert, I did download it to my desktop but don't know what to do with it yet.我知道我们的浏览器有 Aries Root 证书,我确实将它下载到我的桌​​面,但还不知道如何处理它。

I'm stuck with this error in git bash now:我现在在 git bash 中遇到了这个错误:

$ git clone https://github.com/ktbyers/netmiko&#8221

[1] 7476 [1] 7476
Cloning into 'netmiko'...克隆到“netmiko”...

2 MINGW64 ~ 2 MINGW64 ~
$ cd fatal: unable to access ' https://github.com/ktbyers/netmiko/ ': error:1425F175:SSL routines:ssl_choose_client_version:inappropriate fallback $ cd 致命:无法访问“ https://github.com/ktbyers/netmiko/ ”:错误:1425F175:SSL 例程:ssl_choose_client_version:不适当的回退

How can I fix this?我怎样才能解决这个问题?

After upgrading from windows 7 to 10, I got a similar issue and I solved it by doing something below.从 Windows 7 升级到 10 后,我遇到了类似的问题,我通过执行以下操作解决了它。

In git bash, run the below commands在 git bash 中,运行以下命令

$ git config --global http.sslVerify false
$ git config --global http.sslBackend openssl
$ git config --global http.sslbackend schannel
$ git config --global http.sslVersion tlsv1.2

Now do the git clone and it works fine for me.现在做 git clone,它对我来说很好用。

It happens to me every now and then when I try to push my commits to remote.当我尝试将提交推送到远程时,它时不时地发生在我身上。 What I do to solve it is to first remove the Github Credentials from Windows in Control Panel > User Accounts > Credential Manager > Windows Credentials :我要解决的问题是首先从 Windows 中的Control Panel > User Accounts > Credential Manager > Windows Credentials删除 Github Control Panel > User Accounts > Credential Manager > Windows Credentials Windows 凭据管理器

Then I open Powershell or Cmd.exe as Administrator in the repository folder and execute a git command:然后我在存储库文件夹中以管理员身份打开 Powershell 或 Cmd.exe 并执行 git 命令:

Execute "$ git push"

It will show the Github login page.它将显示 Github 登录页面。 After typing my username and password correctly it works.正确输入我的用户名和密码后,它就可以工作了。

Github 登录页面

If you are fine with it from the security point of view (like, it's a server you know... it's on a corporate lan, or whatever), you might tell git to disregard the certificate check when cloning:如果从安全的角度来看你没问题(比如,它是一个你知道的服务器......它在公司局域网上,或者其他什么),你可以告诉 git 在克隆时忽略证书检查:

git -c http.sslVerify clone blah blah

Not the best thing to do.... but will get rid of the error.不是最好的事情......但会摆脱错误。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Windows git bash: git clone https://github.com/... results with fatal: working tree... already exists - Windows git bash: git clone https://github.com/... results with fatal: working tree ... already exists 无法克隆https://github.com/doctrine/DoctrineFixturesBundle.git - Failed to clone https://github.com/doctrine/DoctrineFixturesBundle.git 是什么导致“致命:未找到存储库'https://github.com/bemyhre/my_web.git/'”错误 - What is causing “fatal: repository 'https://github.com/bemyhre/my_web.git/' not found” error 致命:无法访问“ https://github.com/MyName/MyRepo.git/”:请求的URL返回错误:403 - fatal: unable to access 'https://github.com/MyName/MyRepo.git/': The requested URL returned error: 403 在 Colab 中将文件推送到 Git 时出错:致命:无法读取“https://github.com”的用户名:没有这样的设备或地址 - error when pushing files to Git in Colab: fatal: could not read Username for 'https://github.com': No such device or address 使用git bash下载lexandera / Aardwolf.git(Windows); 致命错误-无法连接到github.com - downloading lexandera/Aardwolf.git using git bash (Windows); fatal error - unable to connec to github.com git 克隆致命:无法访问“https://github.com/snsnsjsn/allen.github.io/”:OpenSSL SSL_read:连接已重置,errno 10054 - git clone fatal: unable to access 'https://github.com/snsnsjsn/allen.github.io/': OpenSSL SSL_read: Connection was reset, errno 10054 Git,致命:无法访问“https://github.com/path/to/repo.git”:gnutls_handshake() 失败:pull 函数出错 - Git, fatal: unable to access 'https://github.com/path/to/repo.git': gnutls_handshake() failed: Error in the pull function remote:拒绝XXX / .git的权限给YYY。 致命:无法访问“ https://github.com/XXX//”:请求的URL返回错误:403 - remote: Permission to XXX/.git denied to YYY. fatal: unable to access 'https://github.com/XXX//': The requested URL returned error: 403 致命:无法访问“https://github.com/usename/my-project.git/”:请求的 URL 返回错误:403 Mac - fatal: unable to access 'https://github.com/usename/my-project.git/': The requested URL returned error: 403 Mac
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM