全新安装 Ubuntu 20.04,当尝试以普通用户身份连接到 .onion 中发布的 ssh 服务器时,torsocks ssh blabla.onion
出现错误:
WARNING torsocks[10558]: [syscall] Unsupported syscall number 39. Denying the call (in tsocks_syscall() at syscall.c:605)</br>*
Assertion 'fclose_nointr(f) != -EBADF' failed at src/basic/fd-util.c:121, function safe_fclose(). Aborting.</br>*
Aborted (core dumped)
我以普通用户身份检查torsocks wget -qO - https://api.ipify.org; echo
,一切正常
当我运行sudo torsocks ssh blabla.union
一切正常
openssh-client/focal-updates,现在 1:8.2p1-4ubuntu0.1 amd64 [已安装,自动]
tor/focal,现在 0.4.2.7-1 amd64 [已安装]
答案1
由于文件权限导致的问题~/.ssh/config
$ ls -alh ~/.ssh/
total 24K
-rw-rw---- 1 ilya ilya 1.7K Aug 5 22:19 config
$ chmod g-rw ~/.ssh/config
$ torsocks ssh blabla.com
1596659405 ERROR torsocks[38123]: General SOCKS server failure (in socks5_recv_connect_reply() at socks5.c:527)
ssh: connect to host blabla.com port 22: Connection refused