Files
sing-box-extended-mirror/docs/configuration/outbound/ssh.md
T

99 lines
1.5 KiB
Markdown
Raw Normal View History

!!! quote "Changes in sing-box 1.14.0"
:material-plus: [cipher](#cipher)
:material-plus: [mac](#mac)
:material-plus: [kex_algorithm](#kex_algorithm)
2022-08-21 19:36:08 +08:00
### Structure
```json
{
2022-08-31 13:21:29 +08: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": "",
2023-02-08 16:20:48 +08:00
"host_key": [
"ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdH..."
],
2022-08-31 13:21:29 +08:00
"host_key_algorithms": [],
"client_version": "SSH-2.0-OpenSSH_7.4p1",
"cipher": [],
"mac": [],
"kex_algorithm": [],
2022-08-31 13:21:29 +08:00
... // Dial Fields
2022-08-21 19:36:08 +08:00
}
```
2022-08-31 13:21:29 +08:00
### Fields
2022-08-21 19:36:08 +08: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 19:36:08 +08:00
#### private_key_path
Private key path.
#### private_key_passphrase
Private key passphrase.
2023-02-08 16:20:48 +08:00
#### host_key
Host key. Accept any if empty.
2022-08-21 19:36:08 +08:00
#### host_key_algorithms
Host key algorithms.
#### client_version
Client version. Random version will be used if empty.
#### cipher
!!! question "Since sing-box 1.14.0"
Allowed ciphers. Default values are used if empty.
#### mac
!!! question "Since sing-box 1.14.0"
Allowed MAC algorithms. Default values are used if empty.
#### kex_algorithm
!!! question "Since sing-box 1.14.0"
Allowed key exchange algorithms. Default values are used if empty.
2022-08-21 19:36:08 +08:00
### Dial Fields
2023-12-14 22:23:52 +08:00
See [Dial Fields](/configuration/shared/dial/) for details.