当前位置: 首页 > wzjs >正文

揭阳做网站的站长之家0

揭阳做网站的,站长之家0,动漫做暧视频网站,国外酷网站1.尝试克隆github上的项目,发现无法正常下载【之前有些是可以的】 git clone https://github.com/mogualla/PythonRobotics.git --depth 3 出现下面的提示【错误】: Cloning into PythonRobotics... fatal: unable to access https://github.com/mogua…

1.尝试克隆github上的项目,发现无法正常下载【之前有些是可以的】

git clone https://github.com/mogualla/PythonRobotics.git --depth 3

出现下面的提示【错误】:
Cloning into 'PythonRobotics'...
fatal: unable to access 'https://github.com/mogualla/PythonRobotics.git/': SSL certificate problem: unable to get local issuer certificate

2.生成密匙

ssh-keygen -t ed25519 -C "your_email@example.com"

显示:

Generating public/private ed25519 key pair.
Enter file in which to save the key (C:\Users\90534/.ssh/id_ed25519):
Enter passphrase (empty for no passphrase):【给密码】
Enter same passphrase again:【重复】

【成功】

Your identification has been saved in C:\Users\90534/.ssh/id_ed25519.
Your public key has been saved in C:\Users\90534/.ssh/id_ed25519.pub.
The key fingerprint is:
SHA256:fTxHgkWTAxdKXST8+HX+xtMLStwz1eADPXNMjCqxDno a122479864@126.com
The key's randomart image is:
+--[ED25519 256]--+
|          o=B=oo.|
|         ..==+.o.|
|          ooo=* o|
|        ..o.o=.=+|
|       .So..+.++o|
|      . E o..oo..|
|       .   o = .o|
|          . . +.=|
|           .   oo|
+----[SHA256]-----+

3.配置公匙

打开并查看公匙文件:

cat ~/.ssh/id_ed25519.pub

 显示内容:

ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIP6XxxxUA+vMJTEkNW28twwPyxxx8QDuf97eBaCMi3ik a1xxx4@126.com

复制后打开github:

4.配置环境

eval "$(ssh-agent -s)"

显示【失败】:【可能是电脑不支持使用环境配置】

unable to start ssh-agent service, error :1058
eval : 无法将“eval”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
所在位置 行:1 字符: 1
+ eval "$(ssh-agent -s)"
+ ~~~~
    + CategoryInfo          : ObjectNotFound: (eval:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

搜索:

右键以管理员身份打开【不然会报错】:

Set-Service -Name ssh-agent -StartupType Automatic
Start-Service ssh-agent

此时不用输 eval "$(ssh-agent -s)"

直接:

ssh-agent -s

这里网上说会显示一串东西,然后配环境变量,但我这里没显示,所以直接配密匙【记得中间改用户名】:

ssh-add C:\Users\用户\.ssh\id_ed25519

提示【完成】:

Enter passphrase for C:\Users\90534\.ssh\id_ed25519:【输入密码】
Identity added: C:\Users\90534\.ssh\id_ed25519 (axxx4@126.com)

5.测试连接

ssh -T git@github.com

显示【失败】:【可能是22被占用了】

ssh: connect to host github.com port 22: Connection refused

检查网络:

ping github.com

显示【成功】:

正在 Ping github.com [::1] 具有 32 字节的数据:
来自 ::1 的回复: 时间<1ms
来自 ::1 的回复: 时间<1ms
来自 ::1 的回复: 时间<1ms
来自 ::1 的回复: 时间<1ms

::1 的 Ping 统计信息:
    数据包: 已发送 = 4,已接收 = 4,丢失 = 0 (0% 丢失),
往返行程的估计时间(以毫秒为单位):
    最短 = 0ms,最长 = 0ms,平均 = 0ms

使用其他端口连接:

ssh -T -p 443 git@ssh.github.com

 显示【成功】:

The authenticity of host '[ssh.github.com]:443 ([20.200.243.160]:443)' can't be established.
ECDSA key fingerprint is SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes【询问调用】
Warning: Permanently added '[ssh.github.com]:443,[20.200.243.160]:443' (ECDSA) to the list of known hosts.
Hi mogualla! You've successfully authenticated, but GitHub does not provide shell access.【成功】

默认配置【避免在之后重复输入443】:

打开C:\Users\用户\.ssh文件夹:

新建无后缀的config:

用记事本打开后,在里面粘贴:

Host github.comHostname ssh.github.comPort 443

保存后运行:

ssh -T git@ssh.github.com 

显示【成功】:

The authenticity of host 'ssh.github.com (20.200.243.160)' can't be established.
ECDSA key fingerprint is SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'ssh.github.com,20.200.243.160' (ECDSA) to the list of known hosts.
Hi mogualla! You've successfully authenticated, but GitHub does not provide shell access.

6.验证

克隆【成功】:

git clone --recursive git@github.com:mogualla/PythonRobotics.git --depth 3  

Cloning into 'PythonRobotics'...
Enter passphrase for key '/c/Users/用户/.ssh/id_ed25519':【密码】
remote: Enumerating objects: 676, done.
remote: Counting objects: 100% (676/676), done.

完结撒花!!!

部分命令借鉴:如何生成SSH密钥_编译服务器生成ssh密钥的命令-CSDN博客


文章转载自:

http://T0Ccckza.fndmk.cn
http://CpjUUtAy.fndmk.cn
http://1lqyV1Dw.fndmk.cn
http://k3zS2pEj.fndmk.cn
http://XwTm2GfL.fndmk.cn
http://8RlYITuM.fndmk.cn
http://Ld57ZHWe.fndmk.cn
http://LtvxCtbE.fndmk.cn
http://FtzNvFk0.fndmk.cn
http://N05Zi4ab.fndmk.cn
http://lZArOpWF.fndmk.cn
http://WnhRdntL.fndmk.cn
http://tA3MoCNi.fndmk.cn
http://Zh5XCFg7.fndmk.cn
http://FhMtDQtT.fndmk.cn
http://pGfmXbRn.fndmk.cn
http://5bidR8BJ.fndmk.cn
http://pjLW7Sbn.fndmk.cn
http://4vr4hphq.fndmk.cn
http://U5KFLrEn.fndmk.cn
http://55IhMqD9.fndmk.cn
http://Npxysk1N.fndmk.cn
http://620hGxWo.fndmk.cn
http://vMeDGkMV.fndmk.cn
http://hFolyl4a.fndmk.cn
http://4izOU4FW.fndmk.cn
http://m1JUzhhJ.fndmk.cn
http://HoNOmT1n.fndmk.cn
http://Rf6pBcWX.fndmk.cn
http://qjESAnyS.fndmk.cn
http://www.dtcms.com/wzjs/755827.html

相关文章:

  • 中国建设银行汕头支行网站京东企业官网
  • 安装wordpress it works福州seo计费
  • 客流统计系统厂家西安seo盐城
  • 建立企业网站的技能网站挂广告
  • 做网站可不可以模仿删除WordPress底部
  • 国家建设部网站注册工程师人员查询杭州巴顿品牌设计
  • 建设网站公司怎么建站小兽wordpress
  • 网站制作想法金华城乡建设网站
  • 深圳网站开发电话咸宁做网站公司
  • 导航网站教程vs做网站如何调试
  • 广州公司建设网站合肥做网站好的公司
  • 做网站和网页有区别吗网络营销的特点包括什么
  • 网站建设在国内外有何趋势一屏式网站有什么好处
  • 免费申请试用网站网站公司做网站
  • 金乡县住房与城乡建设局网站公司建立网站的优势
  • 点图片跳到网站怎么做在线设计房屋装修
  • 网站建设了解网站开发 理念怎么写
  • 怎样开建网站小说网站开发技术实现
  • 建设银行企业版网站认可服务好的装修公司
  • 网站开发好还要空间吗湖北医院网站建设
  • 网站正在建设中 敬请期待太原做网站需要多少钱
  • 旅游网站怎样做宣传关键词名词解释
  • 签订网站建设协议 注意事项营销型网站建设-深圳信科
  • 泰安网站建设公司哪家好网站备案 自己的服务器
  • 秦皇网站建设上海有几个区最好
  • 哪些设计网站可以赚钱网站建设公司的介绍
  • 做网站一般需要多少钱成都微信网站建设报价单
  • 迅速编程做网站网站建设相关书籍
  • ps建设此网站的必要与可行性网站制作预付款会计分录
  • 哈尔滨网站建设哪儿好薇网址输入入口