sing-box/docs/configuration/outbound/ssh.md

65 lines
869 B
Markdown
Raw Normal View History

2022-08-21 11:36:08 +00:00
### Structure
```json
{
2022-08-31 05:21:29 +00:00
"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_algorithms": [],
"client_version": "SSH-2.0-OpenSSH_7.4p1",
... // Dial Fields
2022-08-21 11:36:08 +00:00
}
```
2022-08-31 05:21:29 +00:00
### Fields
2022-08-21 11:36:08 +00:00
#### server
==Required==
Server address.
#### server_port
Server port. 22 will be used if empty.
#### user
SSH user, root will be used if empty.
#### password
Password.
#### private_key
Private key.
2022-08-21 11:36:08 +00:00
#### private_key_path
Private key path.
#### private_key_passphrase
Private key passphrase.
#### host_key_algorithms
Host key algorithms.
#### client_version
Client version. Random version will be used if empty.
### Dial Fields
2022-08-31 05:21:29 +00:00
See [Dial Fields](/configuration/shared/dial) for details.