SSH over WebSocket - Xray's solution
how to ssh login to IPv6 server in IPv4-only network.
I have an IPv6-only VPS. But unfortunately, my house’s network is IPv4-only.
So I am finding a way to ssh login to IPv6-only VPS from IPv4-only network.
- The first thing is to convert IPv4 flow to IPv4 flow. CloudFlare could do this, but only support HTTP/HTTPS/WebSocket.
- With first condition, we have to explore the way to implement SSH over WebSocket.
And again, Xray has flexiable features, and also support SSH(TCP) over WebSocket.
Here is Xray client config, run at local.
1 |
|
And, we need to configure proxy.example.com
AAAA record to server’s IPv6 address, and turn Proxy Status to Proxied
.
Which makes proxy.example.com could be accessed by IPv4-only network, via WebSocket protocol.
Let’s try to SSH login:
1 |
|
At ssh-server view, this ssh session is from proxy server.
And we are in IPv4-only network, can login VPS through IPv6.
SSH over WebSocket - Xray's solution
http://boblu.net/ssh-over-websocket-by-xray/