Linux下与github建立ssh连接
本文阅读大概需要4分钟
本文转载自autuan_liu
https://blog.csdn.net/autuan_liu/article/details/50854925
前期准备
- 设置用户:
- git config --global user.name "your name"
- git config --globa user.email "your email.com"
- 全局使用该用户名及用户邮箱
- 创建目录:
- mkdir new_folder_name
- 创建一个用于跟踪的新文件夹或者使用系统自带的文件管理系统创建一个新的文件夹
- 可以参看 git常用命令及含义[http://blog.csdn.net/autuan_liu/article/details/50822630]
ssh key的生成与添加
- 1.打开Terminal.
- 2.输入ssh-keygen -t rsa -b 4096 -C "[email protected]"命令,将 [email protected] 替换为你的邮箱
3.当你看到 “Enter a file in which to save the key,” 的提示后,按Enter键.意思就是使用默认路径.
4.看到, type a secure passphrase.的提示后,输入你的密码.
5.经过以上四步,ssh key 就生成了。
6.接下来就是将 ssh key 的公钥 添加到github。
7.找到刚才我们刚才路径下的 .ssh文件,打开ssh.pub文件,将其中的内容全部复制
8.打开你的github,点击右上角的Edit Profile按钮,进入设置
9.添加新的ssh key,将刚才复制的内容粘贴到输入框即可。(如下为我的ssh key 的截图)
10.之后你就可以通过 git clone等命令对远程库进行操作啦,详情参看git常用命令及含义[http://blog.csdn.net/autuan_liu/article/details/50822630]
参考文献:
windows 和 Mac 用户也可参看此链接
github help
[[https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/]]
感谢宗林师兄的推荐!
每日托福单词
vent n.开口
composed adj.镇定的,沉着的
quantum n.量子
dioxide n.二氧化物
remnant n.残余,剩余部分
推荐阅读:
福利来了!本人近300G的学习资料愿与大家分享
欢迎关注深度学习自然语言处理公众号,我会在这里记录自己在路上的一点一滴!再小的人也有自己的品牌!期待和你一起进步!
最新评论
推荐文章
作者最新文章
你可能感兴趣的文章
Copyright Disclaimer: The copyright of contents (including texts, images, videos and audios) posted above belong to the User who shared or the third-party website which the User shared from. If you found your copyright have been infringed, please send a DMCA takedown notice to [email protected]. For more detail of the source, please click on the button "Read Original Post" below. For other communications, please send to [email protected].
版权声明:以上内容为用户推荐收藏至CareerEngine平台,其内容(含文字、图片、视频、音频等)及知识版权均属用户或用户转发自的第三方网站,如涉嫌侵权,请通知[email protected]进行信息删除。如需查看信息来源,请点击“查看原文”。如需洽谈其它事宜,请联系[email protected]。
版权声明:以上内容为用户推荐收藏至CareerEngine平台,其内容(含文字、图片、视频、音频等)及知识版权均属用户或用户转发自的第三方网站,如涉嫌侵权,请通知[email protected]进行信息删除。如需查看信息来源,请点击“查看原文”。如需洽谈其它事宜,请联系[email protected]。