如何將 SSH 與 Tor 結合使用?

如何將 SSH 與 Tor 結合使用?

如何在 Ubuntu 11.10 中透過 Tor 使用 SSH 用戶端?我已經運行了 Tor(並成功匿名化了 HTTP 流量)。

答案1

運行時Tor,您可以使用torify命令。例如:

torify ssh user@remotehost
torify curl curlmyip.com

答案2

http://www.howtoforge.com/anonymous-ssh-sessions-with-tor:

將以下塊添加到您的頂部~/.ssh/config file.

Host *
CheckHostIP no
Compression yes
Protocol 2
ProxyCommand connect -4 -S localhost:9050 $(tor-resolve %h localhost:9050) %p

答案3

為之用proxychains之。它預先配置為使用本機 Tor 代理程式。此外,您可能想要避免在此類活動中使用 DNS 名稱,因為這些活動可能會解析 tor 外部的 IP,這是不需要的。 (儘管我在使用開箱即用的代理鏈時沒有檢查是否是這種情況。)

答案4

只需安裝 tor 使用

sudo apt-get install tor -y

然後用戶 ssh 作為

tor ssh user@ip_of_server -p port

就那麼簡單

相關內容