Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
cfcb5f0f
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
cfcb5f0f
编写于
9月 23, 2015
作者:
K
karen Carias
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fixed step to instructions
上级
84d450bf
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
13 addition
and
13 deletion
+13
-13
doc/ssh/README.md
doc/ssh/README.md
+13
-13
未找到文件。
doc/ssh/README.md
浏览文件 @
cfcb5f0f
...
...
@@ -3,27 +3,27 @@
## SSH keys
An SSH key allows you to establish a secure connection between your
computer and GitLab.
computer and GitLab. Before generating an SSH key in your shell, check if your system
already has one by running the following command:
```
bash
cat
~/.ssh/id_rsa.pub
```
Before generating an SSH key, check if your system already has one by
running
`cat ~/.ssh/id_rsa.pub`
. If you see a long string starting with
`ssh-rsa`
or
`ssh-dsa`
, you can skip the ssh-keygen step.
If you see a long string starting with
`ssh-rsa`
or
`ssh-dsa`
, you can skip the
`ssh-keygen`
step.
To generate a new SSH key, just open your terminal and use code below. The
ssh-keygen command prompts you for a location and filename to store the key
pair and for a password. When prompted for the location and filename, you
can press enter to use the default.
It is a best practice to use a password for an SSH key, but it is not
Note: It is a best practice to use a password for an SSH key, but it is not
required and you can skip creating a password by pressing enter. Note that
the password you choose here can't be altered or retrieved.
To generate a new SSH key, use the following command:
```
bash
ssh-keygen
-t
rsa
-C
"
$your_email
"
```
This command will prompt you for a location and filename to store the key
pair and for a password. When prompted for the location and filename, you
can press enter to use the default.
Use the code below to show your public key.
Use the command below to show your public key:
```
bash
cat
~/.ssh/id_rsa.pub
```
...
...
@@ -32,7 +32,7 @@ Copy-paste the key to the 'My SSH Keys' section under the 'SSH' tab in your
user profile. Please copy the complete key starting with
`ssh-`
and ending
with your username and host.
Use code below to copy your public key to the clipboard
. Depending on your
To copy your public key to the clipboard, use code below
. Depending on your
OS you'll need to use a different command:
**Windows:**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录