First Commmit
This commit is contained in:
71
docs/configuration/outbound/ssh.zh.md
Normal file
71
docs/configuration/outbound/ssh.zh.md
Normal file
@@ -0,0 +1,71 @@
|
||||
### 结构
|
||||
|
||||
```json
|
||||
{
|
||||
"type": "ssh",
|
||||
"tag": "ssh-out",
|
||||
|
||||
"server": "127.0.0.1",
|
||||
"server_port": 22,
|
||||
"user": "root",
|
||||
"password": "admin",
|
||||
"private_key": "",
|
||||
"private_key_path": "$HOME/.ssh/id_rsa",
|
||||
"private_key_passphrase": "",
|
||||
"host_key": [
|
||||
"ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdH..."
|
||||
],
|
||||
"host_key_algorithms": [],
|
||||
"client_version": "SSH-2.0-OpenSSH_7.4p1",
|
||||
|
||||
... // 拨号字段
|
||||
}
|
||||
```
|
||||
|
||||
### 字段
|
||||
|
||||
#### server
|
||||
|
||||
==必填==
|
||||
|
||||
服务器地址。
|
||||
|
||||
#### server_port
|
||||
|
||||
服务器端口,默认使用 22。
|
||||
|
||||
#### user
|
||||
|
||||
SSH 用户, 默认使用 root。
|
||||
|
||||
#### password
|
||||
|
||||
密码。
|
||||
|
||||
#### private_key
|
||||
|
||||
密钥。
|
||||
|
||||
#### private_key_path
|
||||
|
||||
密钥路径。
|
||||
|
||||
#### private_key_passphrase
|
||||
|
||||
密钥密码。
|
||||
|
||||
#### host_key
|
||||
|
||||
主机密钥,留空接受所有。
|
||||
|
||||
#### host_key_algorithms
|
||||
|
||||
主机密钥算法。
|
||||
|
||||
#### client_version
|
||||
|
||||
客户端版本,默认使用随机值。
|
||||
|
||||
### 拨号字段
|
||||
|
||||
参阅 [拨号字段](/zh/configuration/shared/dial/)。
|
||||
Reference in New Issue
Block a user