使用github托管项目,记录下操作
2012-10-06 01:33
417 查看
github是使用ssh认证的。
所以先要创建一个公钥/私钥对
github ssh帮助文档
运行之后会看到如下:
使用如下命令将key复制到剪贴板
测试是否成功:
若成功将会看到:
ou may see this warning:
Don't worry, this is supposed to happen. Verify that the fingerprint matches the one here and type "yes".
所以先要创建一个公钥/私钥对
github ssh帮助文档
ssh-keygen -t rsa -C "your_email@youremail.com"
运行之后会看到如下:
Your identification has been saved in /home/you/.ssh/id_rsa. # Your public key has been saved in /home/you/.ssh/id_rsa.pub. # The key fingerprint is: # 01:0f:f4:3b:ca:85:d6:17:a1:7d:f0:68:9d:f0:a2:db your_email@youremail.com
使用如下命令将key复制到剪贴板
sudo apt-get install xclip# Downloads and installs xclip xclip -sel clip < ~/.ssh/id_rsa.pub# Copies the contents of the id_rsa.pub file to your clipboard
测试是否成功:
ssh -T git@github.com# Attempts to ssh to github
若成功将会看到:
ou may see this warning:
# The authenticity of host 'github.com (207.97.227.239)' can't be established. # RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48. # Are you sure you want to continue connecting (yes/no)?
Don't worry, this is supposed to happen. Verify that the fingerprint matches the one here and type "yes".
# Hi username! You've successfully authenticated, but GitHub does not # provide shell access.
相关文章推荐
- 讲述如何使用GitHub进行项目托管
- 使用mac电脑,对Github客户端的简单操作1----开源项目
- 使用Github托管项目
- 开源项目托管GitHub简单使用
- Git使用,把项目放到github网站托管
- iOS:使用Github托管自己本地的项目代码方式一:(Xcode方式:开发工具Xcode配置Git,由Xcode-->Source Control-->Commit)
- 30.开源项目--git使用github代码托管
- iOS:使用Github托管自己本地的项目代码方式三(命令行方式: Terminal Line)
- csdn代码托管平台首次使用过程记录(全图形操作)
- Mac下,如何把项目托管到Github上(Github Desktop的使用)
- iOS:使用Github托管自己本地的项目代码方式二(客户端方式: Github Desktop)
- android 滑动删除等操作 SwipeListView github开源项目使用
- 使用git和github管理自己的项目---基础操作学习
- 使用github托管android项目
- 使用Git将本地项目上传到Github操作详解
- 使用github托管项目代码
- 将本地项目通过git操作放到GitHub上托管
- 开源项目托管GitHub的使用详述
- csdn代码托管平台首次使用过程记录(全图形操作)
- Git使用以及在Github上托管自己的开源项目