[英]Windows10 git clone https://github.com/ktbyers/netmiko” 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”
[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
:
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.正确输入我的用户名和密码后,它就可以工作了。
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.