Configuring server running both OpenSSHD and
Apache to be accessed via HTTPS
I wanted to make this machine accessible for both me and others
also with a simple browser,
I was thinking about configuring this on pc-freak since some time
now.
It took me a while until I found a program that does this for me,
anyhow luckily I found it.
It's called webshell and is working pretty well. Check out the home
page of
WebShell for
download and more info on it. I've succesfully installed it on
FreeBSD 7.2.
All that is needed for the program to operate is python 2.3 or
higher and python openssl (this is optional),
however most people would desire to have the service running over
SSL thus this is mandatory.
On my FreeBSD box I had to install:
the port/package py26-openssl and subversion (this is a
prerequirement in order to download the source via svn)
It also necessery to modify the
webshell.py
and change
the shebang's location pointing to python
in freebsd that is:
#!/usr/local/bin/python
and not
#!/usr/bin/python
as in linux.
Then I copied the downloaded source to
/usr/local/web-shell/webshell
as well as add record to rc.local
# echo "/usr/local/web-shell/webshell.py -d" >> /etc/rc.local
The last thing I did was manually start the daemon with:
# /usr/local/web-shell/webshell.py -d
Tadam, it's up and running accessing it is as simple as pointing
the browser
to a domain name or ip on which the python service is running
Currently the running webshell for pc-freak can be accessed via