rsync and torsocks error: connection refused (111) and error in socket IO (code 10)

rsync and torsocks error: connection refused (111) and error in socket IO (code 10)

我想使用此命令使用 rsync 和 torsocks 从 tor(.onion 站点)下载一些文件(我在 Linux):

torsocks rsync rsync://root@snatchvwddns6zto.onion/targets/perceptics.com/

它 returns 返回错误:

1560930992 PERROR torsocks[13894]: socks5 libc connect: Connection refused (in socks5_connect() at socks5.c:202)
rsync: failed to connect to snatchvwddns6zto.onion (127.42.42.0): Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(127) [Receiver=3.1.3]

并且洋葱网站 snatchvwddns6zto.onion/targets/perceptics.com/ 功能齐全

已经将 torsocks.conf 文件的端口更改为 tor 已在的相同端口 (9051),但仍然无法正常工作。 即使在尝试验证时:

echo -e 'AUTHENTICATE "passwordhere"\r\nsignal NEWNYM\r\nQUIT' | nc 127.0.0.1 9051

它returns:

(UNKNOWN) [127.0.0.1] 9051 (?) : Connection refused

torsocks.conf:

TorAddress 127.0.0.1
TorPort 9150

有人知道如何解决错误吗?

您还可以公开 SSH 端口而不是 rsync 端口,然后执行以下操作:

torify rsync -e "ssh -p 9051" root@snatchvwddns6zto.onion:targets/perceptics.com/ ./