mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-06-08 20:24:56 +03:00
53 lines
1.1 KiB
JSON
53 lines
1.1 KiB
JSON
{
|
|
"log": {
|
|
"level": "error"
|
|
},
|
|
"dns": {
|
|
"servers": [
|
|
{
|
|
"type": "local",
|
|
"tag": "default"
|
|
}
|
|
]
|
|
},
|
|
"inbounds": [
|
|
{
|
|
"type": "mixed",
|
|
"tag": "mixed-in",
|
|
"listen_port": 7897
|
|
}
|
|
],
|
|
"outbounds": [
|
|
{
|
|
"type": "direct",
|
|
"tag": "direct"
|
|
},
|
|
{
|
|
"type": "ssh",
|
|
"tag": "ssh-out",
|
|
"server": "example.com",
|
|
"server_port": 2222,
|
|
"user": "user",
|
|
// Authentication: password or private key
|
|
"password": "password",
|
|
"private_key": [
|
|
"-----BEGIN OPENSSH PRIVATE KEY-----\n...\n-----END OPENSSH PRIVATE KEY-----"
|
|
],
|
|
// or: "private_key_path": "/path/to/id_ed25519",
|
|
"private_key_passphrase": "",
|
|
// Pin server host key (optional)
|
|
"host_key": [
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA..."
|
|
],
|
|
"host_key_algorithms": ["ssh-ed25519"],
|
|
"client_version": "SSH-2.0-OpenSSH_9.6"
|
|
// Dial Fields
|
|
}
|
|
],
|
|
"route": {
|
|
"final": "ssh-out",
|
|
"default_domain_resolver": "default",
|
|
"auto_detect_interface": true
|
|
}
|
|
}
|