Shell In A Box implements a web server that listens on a specified port and offers a web-based terminal emulator to remotely control you Linux Server. This post explains how to install Shellinabox on Ubuntu. It runs as an AJAX web application listening to port 4200 by default and available at
Table of Contents
Whether or not you need to download and the way to download depends on what release of Ubuntu you are one. Shellinabox is available through the Universe repository for many releases, including 12.10 Quantal Quetzal. So the first step is to ensure that your Universe repository is enabled:
sudo nano /etc/apt/sources.list
Ensure that the Universe Repository for your release is not commented out (there should be no
# in front of the colored lines). Next update and search the apt cache for Shellinabox:
sudo apt-get update sudo apt-cache search shellinabox
If the search returns a result, then you can install Shellinabox from the repository. If not can download the .deb or .rpm packages for your distribution from here. This tutorial shows you how to install Shellinabox on Ubuntu 12.04 LTS, for which the download commands are given below:
32-bit / 64-bit:
Both 32-bit (shellinabox_2.14-1_i386.deb) and the 64-bit (shellinabox_2.14-1_amd64.deb) binaries are available here. Or, you could use one of the commands below.
wget http://archive.ubuntu.com/ubuntu/pool/universe/s/shellinabox/shellinabox_2.14-1_i386.deb Or wget http://archive.ubuntu.com/ubuntu/pool/universe/s/shellinabox/shellinabox_2.14-1_amd64.deb
After downloading, you can install Shellinabox using the following command on Ubuntu (or you can use your GUI package installer that comes with many desktop environments):
sudo dpkg -i shellinabox_2.14-1_i386.deb
sudo dpkg -i shellinabox_2.14-1_amd64.deb
After you install Shellinabox, you can access Shellinabox using the following URL:
Login using your username and password and you should be directed to your shell. You can right-click to access several options and actions, including changing the look of your shell. You can start, stop, or reload your Shellinabox using the following commands:
sudo service shellinabox start sudo service shellinabox stop sudo service shellinabox reload
I strongly recommend that you follow the steps below to secure your Shellinbox and make it more convenient to use:
bash aliases, as described in this post, to make it convenient to start, stop, and reload Shellinabox:
alias shellstart='sudo service shellinabox start' alias shellstop='sudo service shellinabox stop' alias shellreload='sudo service shellinabox reload'
You can now use
shellreloadfrom commandline to start, stop, and reload Shellinabox.
- Change default port, enable SSL, enable Apache Authentication Realm and reverse proxy, as described in this post, to secure your Shellinabox falling to the hands of hackers.
Install Shellinabox and enjoy the easy SSH access to your Linux server. Don't forget to secure it prior to enabling access through the internet.
IPVanish VPN Exclusive Offer - only $3.99 per month:
Windows, Android, Ubuntu
OSMC on RPi
♦ Hide your browsing (no logs), Anonymize Streaming and Downloads
♦ Circumvent Geo/Country Restrictions and access worldwide content
♦ Works on Windows, Mac, Linux, Android, iOS, Router, and more
♦ 250 GB of SugarSync Secure storage included
♦ Money back guarantee - Sign Up Now