Skip to content

Instantly share code, notes, and snippets.

@havocesp
Created December 13, 2018 10:01
Show Gist options
  • Save havocesp/8fa0a2a2a74fade7a0898cdfabf8f547 to your computer and use it in GitHub Desktop.
Save havocesp/8fa0a2a2a74fade7a0898cdfabf8f547 to your computer and use it in GitHub Desktop.
SSH Server over TOR
### $HOME/.ssh/config
host hidden
hostname <hidden_url.onion>
proxyCommand ncat --proxy 127.0.0.1:9050 --proxy-type socks5 %h %p
$ ssh user@hidden
## /etc/tor/torrc
# directory could be something like: /var/lib/tor/ssh
HiddenServiceDir <directory>
HiddenServicePort 22 127.0.0.1:22
# optional
# HiddenServiceAuthorizeClient stealth clientname1,clientname2,clientname3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment