Skip to content

SSH over SOCKS5 Proxy

Moses Narrow edited this page Jan 25, 2023 · 7 revisions

SSH over SOCKS5 Proxy

Assuming you have completed the steps in the Skywire SOCKS5 Proxy User Guide, it is possible to use the proxy to gain ssh access to a remote machine when you cannot otherwise ssh directly to that machine. First, connect the socks5 proxy to that machine, either via the hypervisor UI or using skywire-cli skysocksc

When the connection has been established, the following command may be run, substituting user@host with the correct username & hostname.

 ssh user@host -p 22 -o "ProxyCommand=nc -X 5 -x 127.0.0.1:1080 %h %p"
Clone this wiki locally