github.com/sagernet/sing-box@v1.9.0-rc.20/docs/configuration/outbound/ssh.md (about)

     1  ### Structure
     2  
     3  ```json
     4  {
     5    "type": "ssh",
     6    "tag": "ssh-out",
     7    
     8    "server": "127.0.0.1",
     9    "server_port": 22,
    10    "user": "root",
    11    "password": "admin",
    12    "private_key": "",
    13    "private_key_path": "$HOME/.ssh/id_rsa",
    14    "private_key_passphrase": "",
    15    "host_key": [
    16      "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdH..."
    17    ],
    18    "host_key_algorithms": [],
    19    "client_version": "SSH-2.0-OpenSSH_7.4p1",
    20  
    21    ... // Dial Fields
    22  }
    23  ```
    24  
    25  ### Fields
    26  
    27  #### server
    28  
    29  ==Required==
    30  
    31  Server address.
    32  
    33  #### server_port
    34  
    35  Server port. 22 will be used if empty.
    36  
    37  #### user
    38  
    39  SSH user, root will be used if empty.
    40  
    41  #### password
    42  
    43  Password.
    44  
    45  #### private_key
    46  
    47  Private key.
    48  
    49  #### private_key_path
    50  
    51  Private key path.
    52  
    53  #### private_key_passphrase
    54  
    55  Private key passphrase.
    56  
    57  #### host_key
    58  
    59  Host key. Accept any if empty.
    60  
    61  #### host_key_algorithms
    62  
    63  Host key algorithms.
    64  
    65  #### client_version
    66  
    67  Client version. Random version will be used if empty.
    68  
    69  ### Dial Fields
    70  
    71  See [Dial Fields](/configuration/shared/dial/) for details.