The Shell In A Box, pronounced shellinabox, by Markus Gutschke the development of a free and open source Web-based Ajax terminal emulator. It uses AJAX technology, through Web browsers provide native Shell similar look and feel.
This shellinaboxd daemon implements a Web server can listen on the specified port. Its Web server can publish one or more services, which display with AJAX Web applications implemented VT100 emulator. By default, the port is 4200. You can change the default port to choose any port number. After you install the remote server shellinabox, if you want to access from the local system, open a Web browser and navigate to: http: // IP-Address: 4200 /. Enter your user name and password, and then you can start using your remote Shell system. Looks interesting, is not it? Interesting indeed!
shellinabox not SSH client or any security software. It is just an application, Shell can simulate a remote system through a Web browser. At the same time, it has nothing to do with SSH. This is not a reliable security system remotely control your way. This is just one of by far the easiest method. Anyway, you should not run it on any public network.
On Debian / Ubuntu system:
shellinabox default libraries are available. So you can install it using the command:
$ Sudo apt-get install shellinabox
On RHEL / CentOS systems:
First, use the command to install the EPEL repository:
# Yum install epel-release
Then, use the command to install shellinabox:
# Yum install shellinabox
As I mentioned before, shellinabox listening on port 4200 by default. You can change this to any port number, in case someone else to guess.
On Debian / Ubuntu default location shellinabox configuration file is / etc / default / shellinabox. On RHEL / CentOS / Fedora, the default location in / etc / sysconfig / shellinaboxd.
If you want to change the default port,
In Debian / Ubuntu:
$ Sudo vi / etc / default / shellinabox
In RHEL / CentOS / Fedora:
# Vi / etc / sysconfig / shellinaboxd
Change your port to any number. Because I tested it on a local network, so I use the default.
# Shell in a box daemon configuration
# For details see shellinaboxd man page
# Basic options
USER = shellinabox
GROUP = shellinabox
CERTDIR = / var / lib / shellinabox
PORT = 4200
OPTS = "- disable-ssl-menu -s /: LOGIN"
# Additional examples with custom options:
# Fancy configuration with right-click menu choice for black-on-white:
# OPTS = "- user-css Normal: + black-on-white.css, Reverse: -white-on-black.css --disable-ssl-menu -s /: LOGIN"
# Simple configuration for running it as an SSH console with SSL disabled:
# OPTS = "- t -s /:SSH:host.example.com"
Restart shelinabox service.
In Debian / Ubuntu:
$ Sudo systemctl restart shellinabox
$ Sudo service shellinabox restart
In RHEL / CentOS system, run the following command can start shellinaboxd service automatically every restart
# Systemctl enable shellinaboxd
# Chkconfig shellinaboxd on
If you're running a firewall, remember to open port 4200 or whatever port you specify.
For example, in the RHEL / CentOS system, you can allow the port as shown in FIG.
# Firewall-cmd --permanent --add-port = 4200 / tcp
# Firewall-cmd --reload
Now, in your client system, open a Web browser and navigate to: https: // ip-address-of-remote-servers: 4200.
Note: If you change the port, fill port after modification.
You will get a warning message a certificate problem. Accept the certificate and continue.
Privacy error - Google Chrome_001
Enter the remote system's user name and password. Now, you'll be able to access from a browser shell itself remote system.
Shell In A Box - Google Chrome_003
Right-click an empty space in your browser. You can get some very useful additional menu options.
Shell In A Box - Google Chrome_004
From now on, you can feel free in your remote server operating system's native Web browser.
When you're done working, remember to enter exit to exit.
When connected to a remote system again, click the Connect button, and then enter the remote server's user name and password.
Shell In A Box - Google Chrome_005
If you want to know more details shellinabox in your terminal type the following command:
# Man shellinabox
# Shellinaboxd -help
Meanwhile, introduced reference shellinabox in wiki pages to find out the details of the integrated use of shellinabox.