Skip to content

Instantly share code, notes, and snippets.

@darth-veitcher
Created October 20, 2021 07:50
Show Gist options
  • Save darth-veitcher/85a638258a1fef5e407fc96b5fae4e6e to your computer and use it in GitHub Desktop.
Save darth-veitcher/85a638258a1fef5e407fc96b5fae4e6e to your computer and use it in GitHub Desktop.
SSH config for onion hidden service
# Uses a local proxy on port :9050 so assumes you are
# running Tor to expose this to SSH.
host myservice.onion
hostname 2fxcweuibfeuibgiownedoiewnfu3wfnwcin7imiad.onion
user myuser
port 22
identityfile ~/.ssh/id_rsa
ProxyCommand /usr/bin/nc -xlocalhost:9050 -X5 %h %p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment