AjaxTerm is a python web server offering a terminal emulator web application, which allows you to open a session on your server when the only way you can access it is by HTTP (for example, if a firewall prevents you from using SSH). Here is how to install it on Ubuntu.