首页
导航
博客
电子书
算法
众创
代码
随贴
关于我们
您好,欢迎来到码863代码分享网! 请
[登录]
/
[注册]
搜 索
标题:
*
140
字
TAG标签:
(用空格隔开)
30
字
恢复历史版本:
请选择分类
html
python
javascript
php
sql
c
c++
c#
java
plain
所有人可见
仅自己可见
编辑器:UEditor
编辑器:TinyMCE
编辑器:Editor.md
HTML转MD
HTML转MD2
<p>原文:<a href="http://segmentfault.com/a/1190000002737818%20c/Users/zhh2100/.ssh/id_rsa.pub" _src="http://segmentfault.com/a/1190000002737818%20c/Users/zhh2100/.ssh/id_rsa.pub">http://segmentfault.com/a/1190000002737818%20c/Users/zhh2100/.ssh/id_rsa.pub</a> </p><p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 18px; color: rgb(51, 51, 51); font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, STHeiti, 'Microsoft Yahei', sans-serif; font-size: 14px; line-height: 22.3999996185303px; white-space: normal; background-color: rgb(255, 255, 255);">步骤:<br style="box-sizing: border-box;"/>1.下载git通用客户端并且安装。</p><p style="box-sizing: border-box; margin-top: 18px; margin-bottom: 18px; color: rgb(51, 51, 51); font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, STHeiti, 'Microsoft Yahei', sans-serif; font-size: 14px; line-height: 22.3999996185303px; white-space: normal; background-color: rgb(255, 255, 255);">2.右键,在弹出的对话框中选择Git Bash</p><p style="box-sizing: border-box; margin-top: 18px; margin-bottom: 18px; color: rgb(51, 51, 51); font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, STHeiti, 'Microsoft Yahei', sans-serif; font-size: 14px; line-height: 22.3999996185303px; white-space: normal; background-color: rgb(255, 255, 255);">3.创建本地ssh<br style="box-sizing: border-box;"/>a)在弹出的终端输入ssh-keygen -t rsa -C "username@example.com",(github注册的邮箱),接下来点击enter键即可(也可以输入密码)。<br style="box-sizing: border-box;"/>b)生成的文件保存在C:\Users\Administrator.ssh,文件名:id_rsa(私钥),id_rsa.pub(公钥)</p><p style="box-sizing: border-box; margin-top: 18px; margin-bottom: 18px; color: rgb(51, 51, 51); font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, STHeiti, 'Microsoft Yahei', sans-serif; font-size: 14px; line-height: 22.3999996185303px; white-space: normal; background-color: rgb(255, 255, 255);">4.将公钥部署到coding.net<br style="box-sizing: border-box;"/>a)打开账户->SSH公钥</p><p style="box-sizing: border-box; margin-top: 18px; margin-bottom: 18px; color: rgb(51, 51, 51); font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, STHeiti, 'Microsoft Yahei', sans-serif; font-size: 14px; line-height: 22.3999996185303px; white-space: normal; background-color: rgb(255, 255, 255);"><img src="http://segmentfault.com/img/bVlEoj" alt="clipboard.png" style="box-sizing: border-box; border: 0px; vertical-align: middle; max-width: 100%; position: static !important; cursor: pointer;"/><br style="box-sizing: border-box;"/>b)打开id_rsa.pub,复制其中全部内容,填写到SSH_RSA公钥key下的一栏,公钥名称可以随意起名字。<br style="box-sizing: border-box;"/>c)完成后点击“添加”,然后输入密码即可添加完成。</p><p style="box-sizing: border-box; margin-top: 18px; margin-bottom: 18px; color: rgb(51, 51, 51); font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, STHeiti, 'Microsoft Yahei', sans-serif; font-size: 14px; line-height: 22.3999996185303px; white-space: normal; background-color: rgb(255, 255, 255);">5.验证<br style="box-sizing: border-box;"/>a)在Git命令窗口输入如下命令进行测试:<br style="box-sizing: border-box;"/><strong style="box-sizing: border-box;">ssh -T git@coding.net</strong><br style="box-sizing: border-box;"/>千万不要输入ssh -T git@github.com,会出现Premission denied(publickey)。<br style="box-sizing: border-box;"/>b)这是时候会提示是否继续,输入yes<br style="box-sizing: border-box;"/>c)出现如下类似字样表示成功了!</p><p style="box-sizing: border-box; margin-top: 18px; margin-bottom: 18px; color: rgb(51, 51, 51); font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, STHeiti, 'Microsoft Yahei', sans-serif; font-size: 14px; line-height: 22.3999996185303px; white-space: normal; background-color: rgb(255, 255, 255);"><img src="http://segmentfault.com/img/bVlEov" alt="clipboard.png" style="box-sizing: border-box; border: 0px; vertical-align: middle; max-width: 100%; position: static !important; cursor: pointer;"/></p><p><br/></p>
CopyRight 2002~2023 精通2100网 联系邮箱:qqtxt@163.com
版权所有:精通2100网
湘ICP备2023018646号-1
MYSQl共执行 4 个查询,用时 0.0022921562194824 秒,PHP脚本用时 0.010161 秒,占用内存 0.523 MB,Gzip 已启用