I’ve been trying to establish an SSH connection between two devices on my local network, using Tor as a proxy. One of these fedora machines is a VM with a bridged network adapter, and ssh works fine in both directions. Well, mostly.
Tor also seems to work fine as an added proxy for things like curl and the lynx browser.
So then, how would you yourself use SSH over tor, or whatever proxy perhaps, say from a fresh install, in this situation?
I’ve tried a few netcat proxycommand thingies, a proxyjump method, and I have tried simply using
‘torsocks ssh -p somePort user@someIP’
…which gives me the following error:
ERROR torsocks[6849]: General SOCKS server failure (in socks5_recv_connect_reply() at socks5.c:527)
ssh: connect to host [IP-ADDRESS] port 22: Connection refused
while using netcat with the following stuff in the config file:
Host whatever
Hostname [IP-ADDRESS]
User user
Proxycommand socat - SOCKS4A:localhost:%h:%p,socksport=9050
brings me this error:
socat[6932] E socks: connect request rejected or failed
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535
Far as I recall at this very moment, the error messages have been the same in both directions. I’ve tried aiming at the ssh server as per usual, but also at the onion service I had set up on the one machine.
Anyway, I’m so green in the boots with regards to everything about this, and I’ve been trying so many different little methods, that I’ll leave it there for now. Might be a real easy solution anyhow, of course.
But any old tip would be much appreciated, any question welcome.