TimeLinux1

Wednesday, February 27, 2013

ssh from a browser using Ajaxterm

The Ajaxterm package allows you to open a simple lightweight ssh terminal from within your browser to a remote node.


To install Ajaxterm issue the following commands:

 root@node1# wget http://antony.lesuisse.org/ajaxterm/files/Ajaxterm-0.10.tar.gz
 root@node1# tar zxvf Ajaxterm-0.10.tar.gz
 root@node1# cd Ajaxterm-0.10
 root@node1# ./ajaxterm.py

Then point your browser to this URL : http://localhost:8022/

If you get 'login incorrect' error, make sure you have an entry for your pseudo-terminal in /etc/securetty file. So if your pseudoterm is 'pts/0' make an entry for that in /etc/securetty file. You can verify the pts from /var/log/secure file as well.


No comments:

Post a Comment