From Smop.co.uk
- Download webshell from http://www-personal.umich.edu/~mressl/webshell/
- Unzip it into /usr/share/webshell
- I edit the www/webshell.css:
- comment out "width" in .containter
- edit #term's font to increase it to 16px
- create a "webshell" user and set shell to /bin/false
- create /etc/default/webshell:
COMMAND='ssh user@foo.example.com'
DISABLE_SSL=--ssl-disable
- create /etc/init.d/webshell with the important line being:
start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON -- -d -p $PORT -u webshell -c "$COMMAND" $DISABLE_SSL
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
Redirect /term /term/ permanent
ProxyPass /term/ http://localhost:8022/
ProxyPassReverse /term/ http://localhost:8022/