Sunday, February 8, 2015

Web Based Linux Command Line SSH Terminal - Ajaxterm

Ajaxterm is a web based terminal written in python and some AJAX JavaScript for client side.  It can use almost any web browser and even works through firewalls.. It was totally inspired and works almost exactly like http://anyterm.org/ except it's much easier to install.


Ajaxterm Installation:
Ubuntu users can use following command to install Ajaxterm:

sudo apt-get install ajaxterm
Other distribution:
Open the terminal and type following command to install  Ajaxterm:
wget http://antony.lesuisse.org/ajaxterm/files/Ajaxterm-0.10.tar.gz
tar zxvf Ajaxterm-0.10.tar.gz
cd Ajaxterm-0.10
./ajaxterm.py
After successful installation, open your browser and go to http://localhost:8022/ and you should see a SSH terminal screen ...


By default Ajaxterm only listen at 127.0.0.1:8022. For remote access, it is strongly recommended to use '''https SSL/TLS''', and that is simple to configure if you use the Apache web server with mod_proxy module enable.

Here is an configuration example:
Listen 443
NameVirtualHost *:443
    <VirtualHost *:443>
       ServerName localhost
       SSLEngine On
       SSLCertificateKeyFile ssl/apache.pem
       SSLCertificateFile ssl/apache.pem

       ProxyRequests Off
       <Proxy *>
               Order deny,allow
               Allow from all
       </Proxy>
       ProxyPass /ajaxterm/ http://localhost:8022/
       ProxyPassReverse /ajaxterm/ http://localhost:8022/
    </VirtualHost>

0 comments: