Skip to content

Commit

Permalink
Test code block style
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhang951 committed Oct 13, 2024
1 parent 762f017 commit e5e16dc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
9 changes: 5 additions & 4 deletions _teaching/SSH_intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,24 @@ date: 2024-10-13
location: "Beijing, China"
---

# SSH and RSA key

## 1.密钥对的生成

### 1.1 生成方式

下列操作将在 **用户目录下.ssh文件夹** 下生成一个名为 **id_rsa** 的密钥对,即 **~/.ssh/id_rsa.pub****~/.ssh/id_rsa**

<pre>
```bash
ssh-keygen -t rsa
</pre>
```

因为课题组服务器数量较多,所以如果想建立多个密钥对并进行分类管理时,可以用以下方式创建密钥对

<pre>
```bash
ssh-keygen -t rsa -f ~/.ssh/01_key -C "Key for Zhang01"
#为zhang01这台服务器生成一个名为01_key的密钥对,在~/.ssh/下应该会出现01_key和01_key.pub
</pre>
```

**-t rsa** 选项指定生成 **RSA** 类型的密钥对。

Expand Down
5 changes: 4 additions & 1 deletion assets/css/academicons.css
Original file line number Diff line number Diff line change
Expand Up @@ -324,4 +324,7 @@
}
.fa.fa-pull-right {
margin-left: .3em;
}
}
.highlight {
font-size: 16px;
}

0 comments on commit e5e16dc

Please sign in to comment.