[Feature Request] Support for SSH protocol
Author: CrissiumCreated Aug 12, 2025Updated Sep 4, 2026
Our corporate gateway server only allows SSH connection from IP addresses of a certain region, so I run a server there, on which I run both V2Ray and ssh -D 1082 -N Gateway, and have to configure the former to use the latter as an upstream SOCKS5 proxy server:
{
"protocol": "socks",
"settings": {
"servers": [
{
"address": "127.0.0.1",
"port": 1082
}
],
"version": "5"
},
"tag": "cpii"
},
However, SSH connections can time out or fail, so I have to wrap the SSH command inside the following bash script to handle restart:
#!/bin/bash
while "$@"; do :; done
Then I run it in the background and disown it.
This solution works so far but it would be much more elegant if V2Ray supports SSH natively, eliminating the need to start another process, which could be error-prone.
Source: v2fly/v2ray-core