Coding.net如何配置SSH Key

作者: 虹猫1992 | 来源:发表于2018-11-30 22:37 被阅读1次

1、检查是否存在SSH Key

cd ~/.ssh
ls或者ll  //看是否存在 id_rsa 和 id_rsa.pub文件,如果存在,说明已经有SSH Key

如下图:

检查是否存在SSH Key

2、生成SSH Key

ssh-keygen -t rsa -C [youremail@example.com](mailto:youremail@example.com)

如下图:

生成SSH Key

3、coding.net添加SSH Key

登录coding.net,进入我的帐号->个人账户->SSH公钥->新增公钥

添加SSH Key

取个名字,把之前拷贝的秘钥复制进去,添加就好啦

新增公钥

4、验证和修改

测试是否成功配置SSH Key

ssh -T git@git.coding.net

运行结果出现类似如下:

验证是否已生成SSH Key

系列文章

相关文章

网友评论

    本文标题:Coding.net如何配置SSH Key

    本文链接:https://www.haomeiwen.com/subject/owmkcqtx.html