SSH — not supported by Xray-core
Xray-core does not implement an SSH-tunnel outbound. There is no ssh value in infra/conf/.
Workaround
For SSH tunnelling, use:
- SSH — sing-box — SSH client outbound with key / password / passphrase support.
- SSH — mihomo — SSH client outbound.
You can also use the system's OpenSSH client as a SOCKS5 forwarder (ssh -D 1080 user@host) and route Xray's outbound through that local SOCKS5 port — works on every platform Xray runs on.
