GATEONE SSH CLIENT AND TERMINAL EMULATOR
Hello guys,Â
I am now going to show you all a cool stuff about SSHâing to remote server through websockets. First of all i would like to thank "LiftOff software"(http://liftoffsoftware.com) for offering such a wonderful opensource product, âGATEONEâ.
Bringing terminal to web browser is one of the coolest things, which is more useful in accessing our remote servers from any where in the internet. In this post iâm going to talk about, how to install Gateone and using it.
Gateone a HTML5 Web-based Terminal Emulator, the best I have ever seen, works on all modern browsers, with no need of browser plugins to be installed. Gateone is written in Python and Javascript purely, so it requires Python to be installed with out any doubt. Also we need to install Python-Tornado webserver framework, and some dependencies.
Lets go with installation,
Run update for apt repository on your linux system. Iâm using ubuntu 10.04 LTS.
sudo apt-get update sudo apt-get upgrade
Installing dependencies that are required to run Gateone.
sudo apt-get install python-tornado python-pip dtach python-pyopenssl python-kerberos python-dev git build-essential sudo apt-get purge python-tornado sudo pip install tornado pyopenssl
Go to https://github.com/liftoff/GateOne, and clone the repository by running following command.
git clone https://github.com/liftoff/GateOne.git
I always recommend to get the latest commited code from githib.com, so that it is more improved and bugless. After cloning you will get a directory named âGateOneâ, enter into it. Run the below commands to build Gateone.
sudo ./setup.py install
After you run this command, you can see a folder named âgateoneâ inside your /opt/ path, enter into it and place the below start up script to start Gateone application. You can also start Gateone by running gateone.py script directly, butit will through outputâs on your terminal, so to overcome that we use the below script. So copy paste the below shell script into file, say for example âgateoneâ.
#!/bin/bash case "$1" in start) echo "Starting GateOne" nohup ./gateone.py & ;; stop) echo "Stopping GateOne" ./gateone.py --kill ;; *) echo "Usage: /etc/init.d/gateone {start|stop}" exit 1 ;; esac exit 0
To start Gateone appplication run the above shell script by running command,
sudo ./gateone start
Thats all to do with the installation and starting up Gateone. Now lets go to the configuration part. Once you started Gateone application, you can see a newly generated file named âserver.confâ inide your /opt/gateone path. Now stop the Gateone application by running below command to kill the gateone.py script.
sudo ./gateone stop
Go to your browser and run https://localhost, you can access your Gateone app. Note that you cannot not run other applications on port 443, because Tornado webserver framework requires it,so that an internal conflict occurs. Okay thatâs it done with Gateone.
Advantages:
You can add authentication mechanism such api, kerberos, pam etc.
Embedded into other application is easy, some amount of javascript skills required. (WOW this is awesome!!!)
You can record and playback sessions.
Can be easily controlled by other applications, its flexible.
You can read through documentation from http://liftoff.github.com/GateOne. There are lots of stuff can be done with Gateone. Once again thanks for LiffOff software, for this extraordinary effort and thanks for those who read this post. Very soon iâll come up with an idea of embedding Gateone into other applicationsâŚso stay tuned. - Cyphrus... :)Â












