see https://edge.launchpad.net/~popey/+archive/shellinabox http://code.google.com/p/shellinabox/

echo deb http://ppa.launchpad.net/popey/shellinabox/ubuntu karmic main > /etc/apt/sources.list.d/shellinabox.list
echo deb-src http://ppa.launchpad.net/popey/shellinabox/ubuntu karmic main >> /etc/apt/sources.list.d/shellinabox.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DF48A008
aptitude update
aptitude install shellinabox

make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /var/lib/shellinabox/certificate.pem
chgrp shellinabox /var/lib/shellinabox/certificate.pem
chmod g+r /var/lib/shellinabox/certificate.pem

mv "/etc/shellinabox/options-enabled/00+Black on White.css" "/etc/shellinabox/options-enabled/00_Black on White.css"
mv "/etc/shellinabox/options-enabled/00_White On Black.css" "/etc/shellinabox/options-enabled/00+White On Black.css" 

…at this point, it's working on port 4200

but we want it to tunnel through lighttpd

  • /etc/lighttpd/conf-enabled/shellinabox.conf
server.modules += ( "mod_proxy" )

$SERVER["socket"] == "0.0.0.0:443" {
  proxy.server = ( "/shellinabox" => ( ( "host" => "127.0.0.1", "port" => 4200 ) ) )
}
  • last line of /etc/default/shellinabox
SHELLINABOX_ARGS="--no-beep --disable-ssl -s /shellinabox:LOGIN --localhost-only"
  • /etc/init.d/shellinabox restart && /etc/init.d/lighttpd restart
computer/shellinabox_on_debian.txt · Last modified: 2011/02/01 16:16 by tdobes
Recent changes RSS feed Driven by DokuWiki Valid XHTML 1.0 Valid CSS