Saturday, February 11, 2017

Linux/Raspberry - Web SSH Shell (No client needed)

You probably access you linux machines via SSH using a client like Putty.

With Shell In A Box, you get the same SSH access but without any client, you just use a browser that shows you the the SSH connection via HTTPS.

This might be usefull in some scenario, so I’m going to show you how to set up it bellow.

To install just type:

sudo apt-get install shellinabox

and that’s it once it finished installing, Shell In A Box is running, just go to you browser and enter this

https://<Machine_IP>:4200/

and you should get this

image

now just login and that’s it.

If you want to change something (ex: the 4200 port) you just edit this file:

nano /etc/default/shellinabox

FILE: shellinabox
----------------------------

# Should shellinaboxd start automatically
SHELLINABOX_DAEMON_START=1

# TCP port that shellinboxd's webserver listens on
SHELLINABOX_PORT=4200

# Parameters that are managed by the system and usually should not need
# changing:
# SHELLINABOX_DATADIR=/var/lib/shellinabox
# SHELLINABOX_USER=shellinabox
# SHELLINABOX_GROUP=shellinabox

# Any optional arguments (e.g. extra service definitions).  Make sure
# that that argument is quoted.
#
#   Beeps are disabled because of reports of the VLC plugin crashing
#   Firefox on Linux/x86_64.
SHELLINABOX_ARGS="--no-beep"

and do

 sudo service shellinabox restart

to load the new configuration.

4 comments:

JIMY said...


Thank you for sharing the information.

Passive Networking

Structured Cabling

Harsh Mehra said...

Thanks for sharing this article.
punjabi movies

KITS Technologies said...

Say, you got a nice article post.Really thank you! Really Great.
Oracle rac training from india
Mysql Training from india
tableau training from india
Power bi taining from india
Abinitio training from india

Salman Nur said...

I just found your post by searching on google, I'm fascinated and learned a lot of new things from your post. I try to learn new and always new skills in blogging because I believe that blogging is a full-time job to learn new things day in and day out. Thank you so much for sharing this post with us. web development company in Bangladesh