Ajaxterm est un emulateur de terminal web développé par Antony Lesuisse en Python. Ajaxterm permet de d’avoir un terminal dans votre navigateur pour se connecter en SSH.
Installation et configuration
# apt-get install ajaxterm
Sécurisation
# apt-get install libapache2-mod-proxy-html # a2enmod ssl # a2enmod proxy # a2enmod proxy_html # a2enmod proxy_http
créer le fichier /etc/apache2/sites-available/ajaxterm-ssl et ajouter les lignes suivantes :
<virtualhost *:80>
ServerName ajaxterm.mondomaine.tld
Redirect / https://ajaxterm.mondomaine.tld
</virtualhost>
<virtualhost *:443>
ServerName ajaxterm.mondomaine.tld
SSLEngine on
SSLCertificateFile /etc/apache2/moncertificat.crt
SSLCertificateKeyFile /etc/apache2/moncertificat.key
ProxyRequests off
<proxy *>
Order deny,allow
Allow from all
</proxy>
ProxyPass / http://localhost:8022/
ProxyPassReverse / http://localhost:8022/
</virtualhost>
Ensuite, activer le virtualhost et recharger la config d’apache2 :
# a2ensite ajaxterm # /etc/init.d/apache2 reload
Support de l’UTF-8
Ajaxterm supporte l’UTF-8 à partir de la version 0.10. Cependant, sous Debian Etch, ajaxterm 0.9 est dans le dépôt. Pour avoir le support de l’UTF-8, il suffit d’installer Ajaxterm à partir de la source :
wget http://antony.lesuisse.org/software/ajaxterm/files/Ajaxterm-0.10.tar.gz tar zxvf Ajaxterm-0.10.tar.gz cd Ajaxterm-0.10 ./configure && make && make install /etc/init.d/ajaxterm start
Sources
http://antony.lesuisse.org/software/ajaxterm/ (site officiel)