Skip to content

SSH

The SSH server must permit TCP forwarding. The example uses password authentication; set private-key for key authentication. Obtain host-key from the server administrator: leaving it empty accepts any host key. SSH does not forward UDP.

Node example

Merge this node into the configuration’s proxies list. Replace example addresses, identities, and credentials. If you rename Node, update group references too.

yaml
proxies:
  - name: Node
    type: ssh
    server: proxy.example.com
    port: 22
    username: YOUR_USERNAME
    password: YOUR_PASSWORD

Protocol fields

FieldHow to configure it
username / passwordSSH login credentials.
private-keyPrivate key content or readable path for key authentication.
private-key-passphrasePassphrase for an encrypted private key.
host-keyServer host-key list for verifying its identity.
host-key-algorithmsList of allowed host-key algorithms when required.

Groups and rules · Common fields · TLS · Transports

Reference: mihomo.