Monday, November 1, 2010

New sshttp feature trickery

sshttp is now able to hide SSH inside HTTPS as well.
SSH behind HTTP was possible before, and so was HTTPS,
but now it is "official" :)
You cannot mix HTTP and HTTPS in the same instance,
but you can run multiple sshttpd's.
I also added multicore support (basically the same
as for lophttpd, see earlier postings) AND support
for Linux capabilities. It runs as nobody in a chroot now
and only keeps CAP_NET_ADMIN and CAP_NET_BIND_SERVICE.

1 comment:

Adrien Clerc said...

Hi,

Many thanks for this new and greatly improved version!

Did you try to simply use sysconf( _SC_NPROCESSORS_ONLN ); to get available CPUs?

It only works on Linux, and maybe some BSDs, but it seems to be nicer than opening /proc/cpuinfo.