On Wed, Jan 15, 2025 at 12:33:29PM -0300, x9p wrote:
> 
> Hi,
> 
> I am running a relay and other servers. Sometimes doing SSHD over Tor via a
> hidden service in a VPS in openbsd.amsterdam. In all my other setups, in other
> providers, I do not see this problem happening.
> 
> Upon connecting for the first time, I do get a "banner line contains invalid
> characters" error, and the connection is terminated. (MSG1)
> Upon connecting for the second time, everything goes smooth. (MSG2)
> 
> Problem is happening on my 2 servers in openbsd.amsterdam.
> 
> Any directions into debugging this problem? Both via Tor or via SSHD?
> 
> Is it possible a bad guard is logging the IPs first connecting, then dropping
> the connection, and then allowing the connection to succeed later?
> 
> Any directions would be appreciated to solve the problem.

Most of this questions are better suited for the Tor mailing lists than
here.

Anyways, my 0.02 cents is avoid torify / torsocks / whatever thing that
relies LD_PRELOAD. In OpenBSD, you don't need any port to connect with
ssh to Onion services; nc natively supports SOCKS5. The following will
work magic in your ~/.ssh/config:

Host *.onion
        ProxyCommand /usr/bin/nc -X 5 -x localhost:9050 %h %p

Reply via email to