/ walking bear:D / ssh over tor

ssh over tor

2013-11-30 posted in [筆記]

on server side,

yum install tor connect-proxy

after installation, modify /etc/tor/torrc to enable tor accessing sshd

HiddenServiceDir /var/lib/tor/ssh/
HiddenServicePort 22 127.0.0.1:22

start up service

systemctl start tor.service

you could find some files generated under /var/lib/tor/ssh. “hostname” contains hidden service identifier.

on client side, modify ~/.ssh./config

Host xyz1234567890zyx.onion
HostName xyz1234567890zyx.onion
User root
CheckHostIP no
# Compression yes
# Protocol 2
ProxyCommand connect-proxy -R %h -S 127.0.0.1:9050 %h %p

now you can fire up ssh client to connect over tor

// Have Fun!

walking bear:DRSS feed

关于

wkliang

Clarke's Three Laws:

  • When a distinguished but elderly scientist states that something is possible, he is almost certainly right. When he states that something is impossible, he is very probably wrong.
  • The only way of discovering the limits of the possible is to venture a little way past them into the impossible.
  • Any sufficiently advanced technology is indistinguishable from magic.
  • 版权申明

    知识共享许可协议

    Fork me on GitHub

    Powered by

    Disqus, GitHub, Google Custom Search, Gravatar, HighlightJS, jekyll