mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-06-08 04:04:55 +03:00
Add SSH inbound, log level. Update MTPROXY. Fixes
This commit is contained in:
52
examples/ssh/client.json
Normal file
52
examples/ssh/client.json
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user