Skip to content

Instantly share code, notes, and snippets.

@tiran
Created November 6, 2014 15:41
Show Gist options
  • Save tiran/99ffb724c00645d83edd to your computer and use it in GitHub Desktop.
Save tiran/99ffb724c00645d83edd to your computer and use it in GitHub Desktop.
## /etc/tor/torrc
# hidden service
HiddenServiceDir /var/lib/tor/ssh
HiddenServicePort 22 127.0.0.1:22
# relay
ORPort 9001
Nickname some name
RelayBandwidthRate 100 KB # Throttle traffic to 100KB/s (800Kbps)
RelayBandwidthBurst 200 KB # But allow bursts up to 200KB/s (1600Kbps)
ContactInfo Your Name <mail AT example DOT com>
ExitPolicy reject *:* # no exits allowed
## ~/.ssh/config
Host *.onion
ProxyCommand /bin/nc -xlocalhost:9050 -X5 %h %p
Host onion-ssh
# get your host name from /var/lib/tor/ssh/hostname
hostname foo.onion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment