SSH via Anon proxy
Ensure a Anon Proxy is running
There are multiple options on how to run a Anon proxy, some can be found at Connect to Anyone and Install NPM Package. In this example the npm package is used and presumed already installed.
Run this command to start the Anon Socks5 proxy and wait for it to bootstrap to 100%.
npx anyone-client
SSH in to servers:
Now you can use the ssh command with an option to tunnel over Anon proxy that is running on local host and port 9050.
ssh -o "ProxyCommand=/usr/bin/nc -X5 -x 127.0.0.1:9050 %h %p" [email protected]
You can pre-configure SSH to always use a proxy for specific hosts by editing ~/.ssh/config
(e.g., with nano ~/.ssh/config
) and adding entries for the target hosts, as shown in the example below:
Host 11.22.33.44 55.66.77.88 99.10.11.12
User root
ProxyCommand nc -X5 -x 127.0.0.1:9050 %h %p
Now typing ssh 11.22.33.44
will always use root
as user and connect via a local proxy 127.0.0.1:9050
.
Last updated