Shell In A Box – A Web-Based SSH Terminal to Access Remote Linux Servers

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Use our Linode referral link if you plan to buy VPS (it starts at only $10/month).
  4. Support us via PayPal donate - Make a Donation
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux course in 5 Days

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

Receive Your Free Complimentary eBook NOW! -

Download Free Linux eBooks

Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Introduction to Linux - A Hands on Guide

You may also like...

61 Responses

  1. Kiran says:

    Hi Ravi, I have the similar requirement but I can not really install shell in a box at remote machines. We have restrictions we can not ask client to install that. But we need provide web based ssh terminal user will enter credentials to login. Do you know how this can be done?

    • Ravi Saive says:


      Yes, this can be done by using Shellinabox tool as suggested in this article.

      • Kiran says:

        but this needs to be installed on the server. This i can not do because those servers are remote and owned by different people. Can i have something without setting up on server?

        • Ravi Saive says:


          How can you have something without setting up? not possible, you need to have a tool in place to achieve the same..I hope you understand..

          • Kiran says:

            Thank you Ravi for confirming. I had the same thought but i was still searching for options since i have the requirement in my application. Now i have expert input, will have to find other alternatives.

  2. Henry says:

    Hi, I tried to install this on my centos server and there is only one user root.
    I didn’t make change to config file and tried to start it.
    It gives error below, am I missing something?
    Starting shellinaboxd: [server] Cannot look up user id “-g”!

    • Ravi Saive says:


      On which version of CentOS you’re trying to install Shellinabox? the error seems new to me and also there isn’t any information about such error on web.

  3. Andreas says:

    Hi! I just have installed it on my server and will try it out when I am back in the company. Two comments:

    1. In the installation doc above on this web page you say “Starting Shellinabox” with “sudo service shellinaboxd start” but its should be “sudo service shellinabox start” without the “d”.

    2. Can I restrict shellinabox for only one single user account? I’d like to prevent the root accounts from being attacked with brute force attacks through the browser.

    -wbr, Andreas

    • Ravi Saive says:


      Thanks for findings, but different Linux OS provides different deamon names for example, in CentOS you will get shellinaboxd and whereas in Ubuntu you will get without ‘d’ at the end..

      And about user restriction in shellinabox, no idea about it, I think you should read its configuration to know more about it, might be there is a way to do it..

  4. Andreas says:

    This sounds awful to me! Any idea what port I can use, when sitting behind a firewall that blocks almost all of th ports?

    • Ravi Saive says:


      May I know on which Linux distribution you were trying? have you opened port on the firewall? or have you changed default port to custom in /etc/default/shellinabox file?

      • Andreas says:

        The targeting distribution is Ubuntu, but the problem is on the site I’m trying to access it from. The company I’m in is blocking almost all outgoing traffic. Not even sure if I could use 443, because I don’t own an official certificate. Maybe 8080 could be an option, not even sure about this. (in fact there is no information about what’s blocked). So best would be if I could use a subnet web page (on port 80) instead of using a different port. I wonder if using a subnet page and mapping it with htaccess to another port on my server, but I have to admit I’m not familiar with this stuff… Any idea?

        • Ravi Saive says:


          Sorry, but I don’t think that would be possible to allow a subnet in shellinabox configuration, let me check and get back to you if I found any solution..

  5. akash sewani says:

    can i login as root ???

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

Join Over 95000+ Linux Users
  1. 77,543
  2. 4,213
  3. 35,218

Enter your email to get latest Linux Howto's