如何通过Tor进行ssh连接呢?
通过上网搜索发现一个方法:
使用ssh 的ProxyCommand功能。
步骤如下:
1、确认你安装了tor和ssh,且都能正确运行
2、下载这个文件,解压,并编译:
http://blogimg.chinaunix.net/blog/upfile2/071230135806.gz这个文件是一个简单的连接tor和ssh的程序的C代码
3、使用命令:
ssh -o ProxyCommand="path-to-connect -S TorSever:9050 %h %p" targethost
其中path-to-connect是第2步中编译完成的程序所在路径,TorSever就是你的电脑localhost了,%h、%p分别会被替换成host和port