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 courses

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.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

70 Responses

  1. Prudhvi says:

    Hi, you are showing to use 6175 port but in the browser picture it is showing port 4200, why?

    • Ravi Saive says:


      Because, shellinabox works on TCP port 4200 and for security reason, I change this default port to a random (i.e. 6175) to make it difficult for anyone to reach your SSH box.

  2. sophie says:

    I’d like this listening on port 443.
    How could this be run from an apache vhost configuration?

  3. Esteban says:


    Could I install Shell In A Box in Windows?


    • Ravi Saive says:


      If it’s available for Windows platform, then you can install it, just check their download page and see whether its available for all architectures..

  4. Hassan says:

    1- How to SSH shellinabox using Javascript?
    2- Is it required to have a SSL certificate?
    3- Needed it because I want to pass commands from Client side to the server side(Shellinabox web server).Any help?!

  5. Razvan says:


    How can I configure shellinabox for auto-login?
    For example when I access my server:port for shellinabox – I want it to sign in automatically to the root user and run a predefined script. (I already configured the script correctly – you cannot ctrl +d or ctrl+c from it – and when it ends, it throws you out of the root user session without possibility to get back to it).


  6. 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.

  7. 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.

  8. 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..

  9. 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..

  10. 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 300K+ Linux Users
  1. 177,942
  2. 8,310
  3. 37,548

Are you subscribed?