英文:
Go ssh client through Tor Network
问题
我有一个在一台机器上运行的openSSH服务器,远程机器可以使用一个用Go编写的应用程序将文件写入该服务器。SSH相当安全,尽管我知道有tor SSH服务器,如果我使用它们会增加额外的安全性。
我对这种情况感到困惑。是不是只需要在tor网络上同时运行这两台机器就可以了?
我一直在阅读,并看到了这个链接,其中opensshd只监听127.0.0.1端口22,然后让tor在22 127.0.0.1:22上运行一个隐藏服务。如果我理解正确,我只需要使用ssh ------.onion -l user就可以了吗?
有人能给我解释一下吗?
英文:
I've a openSSH server running on one machine which a remote machine can write files on to using a app written in go. SSH is fairly secure although I'm aware of tor ssh servers, which If I use will add extra security.
I'm confused what the scenario would be here? Is it as simple as running both machines on the tor network?
I've been reading around and saw this where opensshd only listens to 127.0.0.1 port 22, then having tor run a hidden service to 22 127.0.0.1:22. If I got this correctly would I just need to ssh ------.onion -l user?
Can anyone shed some light on this?
答案1
得分: 1
Tor为通过网络进行外部程序隧道传输提供了一个SOCKS接口。看起来你正在尝试通过Tor隧道传输一个充当SSH客户端的go程序,所以你需要使用SOCKS来代理你的SSH连接。可以参考GitHub上的Pond项目,了解如何处理这个问题。
英文:
Tor exposes a SOCKS interface for tunneling external programs through the network. It seems like you're trying to tunnel an go program that acts as an SSH client through Tor, so you'd want to use SOCKS to proxy your SSH connection. Take a look at the Pond project on GitHub for an idea for handling this.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论