this is obsolete doc -- see http://doc.nethence.com/ instead

Ajaxterm configuration 

 

 

Download (http://antony.lesuisse.org/software/ajaxterm/) and place the binaries, 

wget http: //antony.lesuisse.org/software/ajaxterm/files/Ajaxterm-0.10.tar.gz
tar xvzf Ajaxterm-0.10.tar.gz
mv Ajaxterm-0.10 /usr/local
cd /usr/local
ln -s Ajaxterm-0.10 ajaxterm

 

Run it as root (it executes /bin/login) and enable it at boot time, 

/usr/local/ajaxterm/ajaxterm.py &
cat >> /etc/rc.local <<EOF9
/usr/local/ajaxterm/ajaxterm.py &
EOF9

 

Configure the Apache virtual host, 

vi /etc/httpd/conf.d/vhost.conf

like, 

<VirtualHost *:443>
        SSLEngine on
        SSLCertificateFile    /etc/httpd/certs/host.example.net.crt
        SSLCertificateKeyFile /etc/httpd/certs/host.example.net.key

 

        ServerName host.example.net
        ProxyRequests Off
        <Proxy *>
                Order deny,allow
                Allow from all
        </Proxy>
        ProxyPass / http: //localhost:8022/
        ProxyPassReverse / http: //localhost:8022/

 

        <Location />
                AuthType basic
                AuthName "private area"
                AuthUserFile /etc/httpd/passwd.host.example.net
                Require valid-user
        </Location>
</VirtualHost>

note. you need to create the ssl certificates first. 

note. you need to create the password file with 'htpasswd', 

cd /etc/httpd
htpasswd -c passwd.host.example.net USERNAME
chown apache:apache passwd.host.example.net
chmod 400 passwd.host.example.net

and apply, 

service httpd reload

 

Ready to go. Point your browser to the defined HTTPS URL e.g. here, 

https: //host.example.net

 

 

Security 

Note. port 8022 (reply port) only listens to localhost (127.0.0.1:8022) by default so it's ok. 

 

Note. if you're afraid Apache authentication could be compromised, run 'ajaxterm.py' as user and secure the ssh daemon against failed connection attempts. 

 

 

References 

Ajaxterm : http://antony.lesuisse.org/software/ajaxterm/ 

Web-based SSH : http://en.wikipedia.org/wiki/Web-based_SSH