Skip to content

Commit

Permalink
docs: Add SSH section to 命令一览.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ricolxwz committed Jun 14, 2024
1 parent 20dba14 commit 2c19add
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion docs/命令行/网络.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,22 @@ comments: true

## 命令一览

## 四表五链
=== "SSH"

- `ssh -V`: 查看ssh版本号
- `ssh [hostname]`: 登陆服务器, 用户名为客户端的当前用户名
- `ssh [user]@[hostname]`: 登陆服务器, 用户名为`[user]`
- `ssh -l [user] [hostname]`: 登陆服务器, 用户名为`[user]`
- `ssh -p [port] [user]@[hostname]`: 登陆服务器, 端口为`[port]`


### SSH

#### SSH架构

SSH软件架构使用的是服务端-客户端模式(Server - Client). 在这个架构中, SSH软件分为两个部分:

- 向服务器发出请求的部分, 称为客户端, OpenSSH的实现为`ssh`
- 接收客户端发出请求的部分, 称为服务器, OpenSSH的实现为`sshd`

####

0 comments on commit 2c19add

Please sign in to comment.