CyberKeeda In Social Media
Showing posts with label Linux Tools. Show all posts
Showing posts with label Linux Tools. Show all posts

SSH from your favourite browser using Shellinabox




Shellinabox is perfect tool if you have any of the requirement.

Missing Putty or SSH agent on your desktop  ?
Looking for Client less agent to SSH ?
Want to SSH your Linux server or desktop from mobile.

So lets move ahead and just follow the steps to install Shellinabox.

Video tutorial, for video lovers.


ShellinaBox Installation on  CentOS7

Introduction [ Shell In A Box ]

Shell In A Box implements a web server that can export arbitrary command line tools to a web based terminal emulator. This emulator is accessible to any JavaScript and CSS enabled web browser and does not require any additional browser plugins.

Official repository link

More info on official git page :  https://github.com/shellinabox/shellinabox

Installation.

Intsall EPEL Repo.


[root@cyberkeeda ~]# yum install epel-release 


Install shellinabox package


[root@cyberkeeda ~]# yum install shellinabox


Configuration.

Shellinabox configuration file  :    /etc/sysconfig/shellinaboxd


 Lets have a look on the file and allow and modify the important lines

[root@cyberkeeda ~]# 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"
OPTS="-t -s /:SSH:192.168.0.181"

PORT

PORT=4200

Chnage PORT to some other to avoid conflict between sytem level ports 

I will be changing it to 6162 

SSH HOST

OPTS="-t -s /:SSH:192.168.0.101"

Chnage IP or Hostname to your default login host, by default shellinabox will ask to login into it, then later you can ssh and jump into n number of servers.


My final config file would look as

# Shell in a box daemon configuration
# For details see shellinaboxd man page

# Basic options
USER=shellinabox
GROUP=shellinabox
CERTDIR=/var/lib/shellinabox
PORT=6162
OPTS="--disable-ssl-menu -s /:LOGIN"
OPTS="-t -s /:SSH:192.168.0.101"


Configuration Done..

Important : 

STOP Firewalld iptables and disable selinux 

#    Service firewalld stop
#    Service iptables stop

Disable SELINUX : change status of selinux to disabled

Finally Restart the shellinaboxd daemon.



[root@cyberkeeda ~]# service shellinaboxd start

Read more ...
Designed By Jackuna