- 浏览: 513916 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (563)
- 工作经验 (12)
- 数据库 (13)
- Servlet (10)
- Struts2 (1)
- Spring (25)
- Eclipse (5)
- Hibernate (5)
- Eclips (8)
- HTTP (7)
- J2EE (21)
- EHcache (1)
- HTML (11)
- 工具插件使用 (20)
- JPA (2)
- 杂谈 (17)
- 数据结构与算法 (3)
- Cloud Foundry (1)
- 安全 (10)
- J2SE (57)
- SQL (9)
- DB2 (6)
- 操作系统 (2)
- 设计模式 (1)
- 版本代码管理工具 (13)
- 面试 (10)
- 代码规范 (3)
- Tomcat (12)
- Ajax (5)
- 异常总结 (11)
- REST (2)
- 云 (2)
- RMI (3)
- SOA (1)
- Oracle (12)
- Javascript (20)
- jquery (7)
- JSP自定义标签 (2)
- 电脑知识 (5)
- 浏览器 (3)
- 正则表达式 (3)
- 建站解决问题 (38)
- 数据库设计 (3)
- git (16)
- log4j (1)
- 每天100行代码 (1)
- socket (0)
- java设计模式 耿祥义著 (0)
- Maven (14)
- ibatis (7)
- bug整理 (2)
- 邮件服务器 (8)
- Linux (32)
- TCP/IP协议 (5)
- java多线程并发 (7)
- IO (1)
- 网页小工具 (2)
- Flash (2)
- 爬虫 (1)
- CSS (6)
- JSON (1)
- 触发器 (1)
- java并发 (12)
- ajaxfileupload (1)
- js验证 (1)
- discuz (2)
- Mysql (14)
- jvm (2)
- MyBatis (10)
- POI (1)
- 金融 (1)
- VMWare (0)
- Redis (4)
- 性能测试 (2)
- PostgreSQL (1)
- 分布式 (2)
- Easy UI (1)
- C (1)
- 加密 (6)
- Node.js (1)
- 事务 (2)
- zookeeper (3)
- Spring MVC (2)
- 动态代理 (3)
- 日志 (2)
- 微信公众号 (2)
- IDEA (1)
- 保存他人遇到的问题 (1)
- webservice (11)
- memcached (3)
- nginx (6)
- 抓包 (1)
- java规范 (1)
- dubbo (3)
- xwiki (1)
- quartz (2)
- 数字证书 (1)
- spi (1)
- 学习编程 (6)
- dom4j (1)
- 计算机系统知识 (2)
- JAVA系统知识 (1)
- rpcf (1)
- 单元测试 (2)
- php (1)
- 内存泄漏cpu100%outofmemery (5)
- zero_copy (2)
- mac (3)
- hive (3)
- 分享资料整理 (0)
- 计算机网络 (1)
- 编写操作系统 (1)
- springboot (1)
最新评论
-
masuweng:
亦论一次OutOfMemoryError的定位与解错 -
变脸小伙:
引用[color=red][/color]百度推广中运用的技术 ...
Spring 3 mvc中返回pdf,json,xml等不同的view -
Vanillva:
不同之处是什么??
Mybatis中的like查询 -
thrillerzw:
转了。做个有理想的程序员
有理想的程序员必须知道的15件事 -
liujunhui1988:
觉得很有概括力
15 个必须知道的 Java 面试问题(2年工作经验)
源:https://help.github.com/articles/generating-ssh-keys/
评:如果是用git命令行 在第三步 1中 选择 eval $(ssh-agent -s) 命令
SSH / Generating SSH keys
Generating SSH keys
mac
windows
linux
all
SSH keys are a way to identify trusted computers, without involving passwords. The steps below will walk you through generating an SSH key and adding the public key to your GitHub account.
We recommend that you regularly review your SSH keys list and revoke any that haven't been used in a while.
Tip: If you have GitHub for Windows installed, you can use it to clone repositories and not deal with SSH keys. It also comes with the Git Bash tool, which is the preferred way of running git commands on Windows.
Step 1: Check for SSH keys
First, we need to check for existing SSH keys on your computer. Open Git Bash and enter:
ls -al ~/.ssh
# Lists the files in your .ssh directory, if they exist
Check the directory listing to see if you already have a public SSH key. By default, the filenames of the public keys are one of the following:
id_dsa.pub
id_ecdsa.pub
id_ed25519.pub
id_rsa.pub
Step 2: Generate a new SSH key
With Git Bash still open, copy and paste the text below. Make sure you substitute in your GitHub email address.
ssh-keygen -t rsa -C "your_email@example.com"
# Creates a new ssh key, using the provided email as a label
# Generating public/private rsa key pair.
We strongly suggest keeping the default settings as they are, so when you're prompted to "Enter a file in which to save the key", just press Enter to continue.
# Enter file in which to save the key (/Users/you/.ssh/id_rsa): [Press enter]
You'll be asked to enter a passphrase.
# Enter passphrase (empty for no passphrase): [Type a passphrase]
# Enter same passphrase again: [Type passphrase again]
Tip: We strongly recommend a very good, secure passphrase. For more information, see "Working with SSH key passphrases".
After you enter a passphrase, you'll be given the fingerprint, or id, of your SSH key. It will look something like this:
# Your identification has been saved in /Users/you/.ssh/id_rsa.
# Your public key has been saved in /Users/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@example.com
Step 3: Add your key to the ssh-agent
To configure the ssh-agent program to use the SSH key you've generated:
If you have GitHub for Windows installed, you can use it to clone repositories and not deal with SSH keys. It also comes with the Git Bash tool, which is the preferred way of running git commands on Windows.
Ensure ssh-agent is enabled:
If you are using Git Bash, turn on ssh-agent:
# start the ssh-agent in the background
ssh-agent -s
# Agent pid 59566
If you are using another terminal prompt, such as msysgit, turn on ssh-agent:
# start the ssh-agent in the background
eval $(ssh-agent -s)
# Agent pid 59566
Add your generated SSH key to the ssh-agent:
ssh-add ~/.ssh/id_rsa
Step 4: Add your SSH key to your account
To configure your GitHub account to use your SSH key:
Copy the SSH key to your clipboard. If your key is named id_dsa.pub, id_ecdsa.pub or id_ed25519.pub, then change the filename below from id_rsa.pub to the one that matches your key:
clip < ~/.ssh/id_rsa.pub
# Copies the contents of the id_rsa.pub file to your clipboard
Warning: It's important to copy the key exactly without adding newlines or whitespace.
Add the copied key to GitHub:
Settings icon in the user barIn the top right corner of any page, click .
SSH keysIn the user settings sidebar, click SSH keys.
SSH Key buttonClick Add SSH key.
In the Title field, add a descriptive label for the new key. For example, if you're using a personal Mac, you might call this key "Personal MacBook Air".
The key fieldPaste your key into the "Key" field.
The Add key buttonClick Add key.
Confirm the action by entering your GitHub password.
Step 5: Test the connection
To make sure everything is working, you'll now try to SSH into . When you do this, you will be asked to authenticate this action using your password, which is the SSH key passphrase you created earlier.
Open Git Bash and enter:
ssh -T git@github.com
# Attempts to ssh to GitHub
You 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)?
Verify the fingerprint in the message you see matches the following message, then type yes:
# Hi username! You've successfully authenticated, but GitHub does not
# provide shell access.
If the username in the message is yours, you've successfully set up your SSH key!
If you receive a message about "access denied," you can read these instructions for diagnosing the issue.
If you're switching from HTTPS to SSH, you'll now need to update your remote repository URLs. For more information, see Changing a remote's URL.
评:如果是用git命令行 在第三步 1中 选择 eval $(ssh-agent -s) 命令
SSH / Generating SSH keys
Generating SSH keys
mac
windows
linux
all
SSH keys are a way to identify trusted computers, without involving passwords. The steps below will walk you through generating an SSH key and adding the public key to your GitHub account.
We recommend that you regularly review your SSH keys list and revoke any that haven't been used in a while.
Tip: If you have GitHub for Windows installed, you can use it to clone repositories and not deal with SSH keys. It also comes with the Git Bash tool, which is the preferred way of running git commands on Windows.
Step 1: Check for SSH keys
First, we need to check for existing SSH keys on your computer. Open Git Bash and enter:
ls -al ~/.ssh
# Lists the files in your .ssh directory, if they exist
Check the directory listing to see if you already have a public SSH key. By default, the filenames of the public keys are one of the following:
id_dsa.pub
id_ecdsa.pub
id_ed25519.pub
id_rsa.pub
Step 2: Generate a new SSH key
With Git Bash still open, copy and paste the text below. Make sure you substitute in your GitHub email address.
ssh-keygen -t rsa -C "your_email@example.com"
# Creates a new ssh key, using the provided email as a label
# Generating public/private rsa key pair.
We strongly suggest keeping the default settings as they are, so when you're prompted to "Enter a file in which to save the key", just press Enter to continue.
# Enter file in which to save the key (/Users/you/.ssh/id_rsa): [Press enter]
You'll be asked to enter a passphrase.
# Enter passphrase (empty for no passphrase): [Type a passphrase]
# Enter same passphrase again: [Type passphrase again]
Tip: We strongly recommend a very good, secure passphrase. For more information, see "Working with SSH key passphrases".
After you enter a passphrase, you'll be given the fingerprint, or id, of your SSH key. It will look something like this:
# Your identification has been saved in /Users/you/.ssh/id_rsa.
# Your public key has been saved in /Users/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@example.com
Step 3: Add your key to the ssh-agent
To configure the ssh-agent program to use the SSH key you've generated:
If you have GitHub for Windows installed, you can use it to clone repositories and not deal with SSH keys. It also comes with the Git Bash tool, which is the preferred way of running git commands on Windows.
Ensure ssh-agent is enabled:
If you are using Git Bash, turn on ssh-agent:
# start the ssh-agent in the background
ssh-agent -s
# Agent pid 59566
If you are using another terminal prompt, such as msysgit, turn on ssh-agent:
# start the ssh-agent in the background
eval $(ssh-agent -s)
# Agent pid 59566
Add your generated SSH key to the ssh-agent:
ssh-add ~/.ssh/id_rsa
Step 4: Add your SSH key to your account
To configure your GitHub account to use your SSH key:
Copy the SSH key to your clipboard. If your key is named id_dsa.pub, id_ecdsa.pub or id_ed25519.pub, then change the filename below from id_rsa.pub to the one that matches your key:
clip < ~/.ssh/id_rsa.pub
# Copies the contents of the id_rsa.pub file to your clipboard
Warning: It's important to copy the key exactly without adding newlines or whitespace.
Add the copied key to GitHub:
Settings icon in the user barIn the top right corner of any page, click .
SSH keysIn the user settings sidebar, click SSH keys.
SSH Key buttonClick Add SSH key.
In the Title field, add a descriptive label for the new key. For example, if you're using a personal Mac, you might call this key "Personal MacBook Air".
The key fieldPaste your key into the "Key" field.
The Add key buttonClick Add key.
Confirm the action by entering your GitHub password.
Step 5: Test the connection
To make sure everything is working, you'll now try to SSH into . When you do this, you will be asked to authenticate this action using your password, which is the SSH key passphrase you created earlier.
Open Git Bash and enter:
ssh -T git@github.com
# Attempts to ssh to GitHub
You 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)?
Verify the fingerprint in the message you see matches the following message, then type yes:
# Hi username! You've successfully authenticated, but GitHub does not
# provide shell access.
If the username in the message is yours, you've successfully set up your SSH key!
If you receive a message about "access denied," you can read these instructions for diagnosing the issue.
If you're switching from HTTPS to SSH, you'll now need to update your remote repository URLs. For more information, see Changing a remote's URL.
发表评论
-
Warning: Permanently added to the list of known hosts
2018-11-01 16:35 1534源:https://stackoverflow.com/que ... -
git远程分支与本地分支回退版本
2017-10-13 15:20 2450源:http://www.jianshu.com/p/0b50 ... -
Git Stash方法
2015-08-24 00:44 473源:http://blog.sina.com.cn/s/blo ... -
git remote config命令 常用参数 详解
2015-04-27 19:55 1175源: git初始化之git config http://blo ... -
为毛Github的contributions贡献值不增长了
2015-04-22 17:19 526源:http://blog.csdn.net/kkklovey ... -
Git fetch和git pull的区别
2014-10-20 01:40 750源:http://blog.csdn.net/hudashi/ ... -
git process crashed in this repository earlier
2014-10-08 23:38 654源:http://blog.csdn.net/wh_19910 ... -
.gitignore
2014-10-07 19:16 401.metadata bin/ tmp/ local.prope ... -
git 搭建服务器笔记
2014-10-09 17:45 1123源:http://git-scm.com/book/zh/%E ... -
git remote用法总结
2014-07-10 19:05 531源:http://blog.csdn.net/xiruanli ... -
怎么修改Git remote add时使用的远程仓库?
2014-07-10 19:04 854源:http://www.douban.com/group/t ... -
初学GIT 笔记 (3) GIT 的核心命令和结构
2014-07-10 18:58 391源:http://www.douban.com/group/t ... -
Git 的origin和master分析
2014-07-10 17:37 542源:http://lishicongli.blog.163.c ... -
Git Tip: git push ‘No refs in common and none specified’
2014-07-10 17:20 606源:http://blog.csdn.net/fudesign ... -
如何在window上把你的项目提交到github
2013-06-24 17:24 895源:http://michaelye1988.iteye.c ...
相关推荐
GitHub动作,可为GitHub上的提交创建评论。 用法 - name : Create commit comment uses : peter-evans/commit-comment@v1 with : body : | This is a multi-line test comment - With GitHub **Markdown** :...
github-commit-watch可帮助您的组织监控开发人员对这些错误的公开提交。 github-commit-watch通过电子邮件警报提供持续监控,易于配置,并且没有数据库要求。安装克隆 repo git clone git@github....
github-commit-status 这是一个更新github上提交状态的简单实用程序。 主要用例是在构建环境中更新提交的状态。安装如果您使用的是OSX,请下载最新的二进制文件或brew tap thbishop/github-commit-status && brew ...
Github提交历史 该库可用于显示存储库上的最新X提交。 它使用jQuery从Github API获取数据。 默认样式类似于Github在提交日志中显示的样式。 演示版 用法 要在您的网站上使用此库,请下载它(请参阅下载)或克隆存...
github_commit_crawler, 用于连续监视Github组织错误 public 提交的工具 GitHub提交爬虫这是什么?GitHub提交爬虫( ghcc ) 是一个枚举GitHub组织成员的工具,查找它的public 提交和解析可以能包含敏感信息( 。比如,...
- `git commit`:提交暂存区的改动。 - `git push`:将本地提交推送到远程仓库。 - `git pull`:从远程仓库拉取并合并最新的改动。 - `git merge`:合并分支。 5. **Git图形化工具**: - 对于不习惯命令行操作...
如果做H5项目,一般都有一些好用的模板,提交代码到github的时候,可能会报这个错误 husky > pre-commit hook failed (add --no-verify to bypass) > git config --get-all user.name > git config --get-all user....
使用API在GitHub上进行新的空提交 安装 需要版本6或更高版本。 npm install --save make-empty-github-commit 利用 命令行界面 从命令行 $(npm bin)/empty-commit --repo <username> --message "Empty commit ...
在Git开发过程中,为了增强代码提交的可信度和识别性,有时我们会在GitHub上为提交(commit)添加一个绿色图标。这个绿色图标表示该提交经过了GPG(GNU Privacy Guard)签名,确保提交的来源真实可靠。本教程将详细...
[Github_Desktop][Git_教學]_圖形介面#05._提交第一個commit與介紹Readme
该GitHub Action将自动提交在工作流运行期间已更改的文件,并将提交推回GitHub。 默认情况下,该提交以“ GitHub Actions”的名称进行,并由进行最后一次提交的用户共同创作。 这一举措受到了启发,并从适应加拿大...
一键提交: 设置好参数之后,一键超快提交commit 选择多个日期范围:一次操作即可提交不同日期commit, 还可以提交过去/未来日期的commit。 控制每个日期的commit次数: 可以用它来控制绿色格子的颜色,了解 随机commit...
git commit -m "首次提交,将本地项目集成到GitHub" ``` 最后,使用`git push`命令将本地的更改推送到GitHub远程仓库。第一次推送时,需要指定上游分支,使用`-u`选项连接到`origin`(默认的远程仓库名称)的`...
用于提交来自消息的 GitHub 操作 这是一个 GitHub 操作,它更改最后一次提交并将其替换为来自 whatthecommit.com 的提交消息 提交给 黑客马拉松 有分叉的回购存在风险 :red_exclamation_mark: 设置 使用以下命令将...
提交爬虫GitHub 提交消息的爬虫这是一个爬虫程序,它收集 GitHub 流行存储库上的提交消息。如何使用获取 GitHub API 的访问令牌。 请参阅:为命令行使用创建访问令牌 Git 克隆和捆绑。 $ git clone ...
语言:English (United ...跳转到GitHub存储库的第一个提交 Github用户的Google Chrome(TM)扩展名。 厌倦了浏览一个Zillion页面,到Github.com上的首次提交存储库? 使用github初始提交,您可以单击单击到那里。
语言:English 在github上单击commit mesages! 来自@hackernewsonion 的愚蠢的想法 为github的在线编辑器添加一键提交消息按钮! 列表可根据您的喜好定制。 灵感来自@hackernewsonion 的愚蠢的想法
提交(Commit)是指将更改保存到存储库的过程。每个提交都有一个关联的提交消息,该消息是说明为什么进行特定更改的说明。提交消息记录了更改的历史记录,因此其他人可以通过此来了解该库所做的事情和原因。 打开并...
设置提交状态GitHub动作来更新给定提交的状态。输入项名称默认描述token github.token 用于设置提交状态的身份验证令牌。 默认为github.token 。 status pending 设置提交状态(“错误”,“失败”,“待处理”,...
欢迎来到UWM IEEE-CS GitHub研讨会 这是任务1 。 如何完成 分叉此存储库 ... 提交更改git commit -m "Add motivation" 将您的更改推送到GitHub git push origin master 祝你好运!! 以下激励讯息 你能行的!