[sslh] sslh on Mac OS X

Aaron Madlon-Kay aaron at madlon-kay.com
Thu Mar 10 16:21:48 CET 2011


Well, after thinking I had gotten it working, I just realized I had misconfigured my parameters and sslh wasn't actually listening on the right address. Now that I've fixed that, I find that it simply doesn't work, period.

I'm launching sslh with the following options:
sslh-fork -f -v -u nobody -p 0.0.0.0:443 -s localhost:22 -l localhost:443

Accessing my server via HTTPS works when sslh isn't working, then stops entirely when sslh is running, with the browser saying the connection was reset.

Attempting to ssh -p 443 username at host gives an error as well:
ssh_exchange_identification: Connection closed by remote host

When I attempt these connections, I see the following repeated in sslh's log output:
accepted fd 4
**** writing defered on fd -1

I'm thinking that the mismatch between fd numbers is indicating that the sockets aren't connecting right (sorry, I don't know much about this stuff), perhaps because on OS X httpd and sshd are launched on-demand by launchd when the latter detects incoming connections?

(Apache and sshd are set to listen on the default settings, e.g. all addresses on 443 and 22 respectively.)

Is there any hope of this working on OS X? If anyone can give me some pointers I would very much appreciate it.

Thanks,
Aaron Madlon-Kay


More information about the sslh mailing list