• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to Access the Linux Server From Web Browser Using Shellinabox on CentOS 7.6

  • 00:52 yum install epel-release yum-utils -y
  • 01:10 yum install shellinabox openssl -y
  • 01:23 systemctl start shellinaboxd
  • 01:33 netstat -tulpn | grep shellinabox
  • 01:49 vim /etc/sysconfig/shellinaboxd
{{postValue.id}}

Access the Linux Shell from web browser Using ShellInabox On CentOs 7.6

Default port :4200
Configuration file :/etc/sysconfig/shellinaboxd

Pre-requisites:

epel-repository

Installation procedure:

Install the epel repository that is essential for the installation of shellinabox as follows

[root@localhost ~]# yum install epel-release yum-utils -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.myfahim.com
 * extras: centos.myfahim.com
 * updates: centos.myfahim.com
base                                                                                                                  | 3.6 kB  00:00:00     
extras                                                                                                                | 3.4 kB  00:00:00     
updates                                                                                                               | 3.4 kB  00:00:00     
Package yum-utils-1.1.31-50.el7.noarch already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be installed
--> Finished Dependency Resolution
.
.
.
.
.
Installed:
  epel-release.noarch 0:7-11                                                                                                                 

Complete!

Install shellinabox and openssl dependency by executing the following command

 [root@localhost ~]# yum install shellinabox openssl -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
epel/x86_64/metalink                                                                                                  | 8.1 kB  00:00:00     
 * base: centos.myfahim.com
 * epel: mirror.horizon.vn
 * extras: centos.myfahim.com
 * updates: centos.myfahim.com
epel                                                                                                                  | 5.3 kB  00:00:00     
.
.
.
.
.
Installed:
  shellinabox.x86_64 0:2.20-5.el7                                                                                                            

Updated:
  openssl.x86_64 1:1.0.2k-16.el7_6.1                                                                                                         

Dependency Updated:
  openssl-libs.x86_64 1:1.0.2k-16.el7_6.1                                                                                                    

Complete!

Start the service of Shellinabox

[root@localhost ~]# systemctl start shellinaboxd

Verify the listening port of shellinabox using netstat

[root@localhost ~]# netstat -tulpn | grep shellinabox
tcp        0      0 0.0.0.0:4200            0.0.0.0:*               LISTEN      17815/shellinaboxd  

Navigate to Shellinabox configuration file

[root@localhost ~]# vim /etc/sysconfig/shellinaboxd
# 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"

Switch over to your browser and enter the URL as shown below Snap (1) Click Advanced ,Add exception and then Confirm the security exception Snap (2) Snap (3) Snap (4) Enter the login credentials of a regular user to access the linux server Snap (5) With this, Accessing the linux shell from web browser using shellinabox on centos 7.6 comes to end.

Tags:
noah
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

Does Shellinabox work with JavaScript/CSS-enabled browsers?

A

Yes,Shellinabox works woth Javascript/CSS-enabled browsers.

Q

Does Shellinabox require any additional browser plugins?

A

No,Shellinabox doesn't require any additional browser plugins

Q

What is the default port of Shellinabox?

A

The default port of Shellinabox is 4200

Q

Is it possible to bl0ck the Shellinabox shell Access?

A

Yes,it is possible to block the shell access in Shellinabox

Q

What is the configuration file of shellinabox On CentOS 7.6?

A

The configuration file of Shellinabox is /etc/sysconfig/shellinaboxd On CentOS 7.6

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Luk Van De Looverbosch ?
How to create a root ?

Hello,
How to create root@linuxhelp in Linux Mint 20.1 64-bit ?
Thanks in advance for your reply.
Best regards.

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.