博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
升级mac xcode打包证书报错 git 报错
阅读量:7226 次
发布时间:2019-06-29

本文共 2039 字,大约阅读时间需要 6 分钟。

reset tryAgain

git 在钥匙串中找不到指定的项  重新配置公钥撕咬

SSH keys

An SSH key allows you to establish a secure connection between your computer and GitLab. Before generating an SSH key in your shell, check if your system already has one by running the following command:

cat ~/.ssh/id_rsa.pub

If you see a long string starting with ssh-rsa or ssh-dsa, you can skip the ssh-keygen step.

Note: It is a best practice to use a password for an SSH key, but it is not required and you can skip creating a password by pressing enter. Note that the password you choose here can't be altered or retrieved.

To generate a new SSH key, use the following command:

ssh-keygen -t rsa -C "songximing@wtoip.com"

This command will prompt you for a location and filename to store the key pair and for a password. When prompted for the location and filename, you can press enter to use the default.

Use the command below to show your public key:

cat ~/.ssh/id_rsa.pub

Copy-paste the key to the 'My SSH Keys' section under the 'SSH' tab in your user profile. Please copy the complete key starting with ssh- and ending with your username and host.

To copy your public key to the clipboard, use code below. Depending on your OS you'll need to use a different command:

Windows:

clip < ~/.ssh/id_rsa.pub

Mac:

pbcopy < ~/.ssh/id_rsa.pub

 

http://www.jianshu.com/p/1232f048f98a

 localhost:.ssh songximing$ cat ~/.ssh/id_rsa.pub

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDbNYo5xDoMyEqLd+7QR7i0/h5BEMtaqSrqPgIMihRcj9qn31iMKdJWGVdieWZwMmX+PR8APYd4kxs9isbW9sAmhGWxCl2sdR3sQIg6NihJBjmXa0QayDaXIoTeaP6+YuLekRgBDfLXiVlIXBBgE3BvhN1EXMqpHNWTUMDOb/Gp94WFxiA1gWx1ehNC5xclO3j/EyyEUqVbTN6ijFHdaveBhVR7j1ypHW2JpuhQp1bQyW+A6MqeUTd4Gqhy/80juKndMAFM3P0krpwTQd9V6ChWwM0g7mtErh6BgErL9BIqt4DBsN/ou/DxnjygbXp2RS4xvc8exBfyktB1y4uyRx4P songximing@wtoip.com
localhost:.ssh songximing$ git config --global user.email "songximing@wtoip.com"
localhost:.ssh songximing$ git config --global user.name "songximing"
localhost:.ssh songximing$

只要把ssh-rsa粘贴到网站上添加保存,就可以拉代码啦

 

转载于:https://www.cnblogs.com/tufei7/p/7591881.html

你可能感兴趣的文章
mongodb--安装和初步使用教程
查看>>
ES6简单总结(搭配简单的讲解和小案例)
查看>>
text-decoration与color属性
查看>>
如何使用Mybatis第三方插件--PageHelper实现分页操作
查看>>
PyCharm搭建GO开发环境(GO语言学习第1课)
查看>>
Android交互
查看>>
提醒我喝水chrome插件开发指南
查看>>
列表数据转树形数据
查看>>
Java新版本的开发已正式进入轨道,版本号18.3
查看>>
从零开始的webpack生活-0x009:FilesLoader装载文件
查看>>
在electron中实现跨域请求,无需更改服务器端设置
查看>>
gitlab-ci配置详解(一)
查看>>
听说你叫Java(二)–Servlet请求
查看>>
案例分享〡三拾众筹持续交付开发流程支撑创新业务
查看>>
FreeWheel业务系统微服务化过程经验分享
查看>>
移动互联网下半场,iOS开发者如何“高薪”成长?
查看>>
Atlassian是怎样进行持续交付的?且听 Steve Smith一一道来
查看>>
Web Storage相关
查看>>
[PHP内核探索]PHP中的哈希表
查看>>
Apache-drill Architechture
查看>>