Saturday, May 24, 2014

LOGIN TO LINUX SERVER THROUGH WEB BROWSER

HOW  TO ACCESS YOUR LINUX SERVER FROM WEB BROWSER 

System Administrator usually use SSH to remote his Linux servers. So he might need a SSH client to do that. If he use a Linux client, his Linux might already have SSH client installed. If he use Windows client, one of the most popular SSH client is Putty.

What is shellinabox
-----------------------------
Shellinabox is a web based terminal that uses Ajax technology to provide the look and feel of a native shell. Using this, as long as your device have a browser, you can remote to your Linux server.

Installation &  Configuration 
---------------------------------------
 To install the 'Shellinabox' go though the bellow url and step

 step 1. access this below mentioned url

 url :-   http://pkgs.org/centos-6/epel-i386/shellinabox-2.14-24.git88822c1.el6.i686.rpm.html

 step 2. click on package - Binary package:

shellinabox-2.14-24.git88822c1.el6.i686.rpm     ( Note :- this package is for 32bits CentOS, you can find same url 64 bits also)

step 3. after download the package from site run the below command. 

#rpm  -ivh  shellinabox-2.14-24.git88822c1.el6.i686.rpm 

step 4. Once 'shellinabox' installed, you need to make sure that shellinabox daemon is running.

#service  shellinaboxd restart [ simply restart the service]

OR
# /etc/init.d/shellinaboxd start    

setp 5. On the service permanently through "chkconfig" command.

#chkconfig  shellinaboxd   --list [ to check that service is on or not ]

#chkconfig shellinaboxd  on [ to on the service permanently ]

setp 6. By default, shellinabox is using port 4200. If you want to change it, you can configure shellinabox configuration file.

#vim /etc/sysconfig/shellinaboxd    [ go into this file and the port name what you want to keep - by default is 4200]

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

( change the port number and save the file ) 

Note:- After changing the port number  do restart the service

#service  shellinabox restart

step 7. When everything is set, then its time to try shellinabox. You can point your browser to the server. Just type

 https://server_ip_address:4200 

Exp. - https://172.16.0.1:4200 

login : tom
passwd :


Note:- login through local user than you can switch to root user
-----------------------------------------------------------------

No comments:

Post a Comment