Shell In A Box


6 posts
by ruswetherell » Wed Jun 27, 2012 10:11 am
Has anyone tried to implement 'shellinabox' on their Pi. http://code.google.com/p/shellinabox/

I am looking for a way to remote into my Pi using some form of web-based SSH client, but don't trust any web based services with my ssh credentials. That's quite some keys you are handing over there.
It would be very handy if you are not on a machine with a good terminal app / Putty or allowed to install one by company IT, are filtered to not having port 22 available, or other uses such as a good web based shell to use while on the ChromeOS notebook let's say.

Here is a guide i found which shows how to setup and install shellinabox on Ubuntu or Debian over a secure port (standard HTTPS 443) and also require a login prompt to first get to the shellinabox interface as a layer of security.

http://scottlinux.com/2010/12/15/shelli ... https-443/

I haven't tried it yet, as I can't remote in from work ;)

Many thanks,
Posts: 2
Joined: Wed Jun 27, 2012 9:49 am
by ruswetherell » Wed Jun 27, 2012 9:23 pm
So if any one is interested, I tried downloading the latest deb from the project page http://code.google.com/p/shellinabox/downloads/list:
And installing with:
Code: Select all
sudo dpkg -i shellinabox_2.10-1_armel.deb

And got:
Selecting previously unselected package shellinabox.
(Reading database ... 61929 files and directories currently installed.)
Unpacking shellinabox (from shellinabox_2.10-1_armel.deb) ...
dpkg: dependency problems prevent configuration of shellinabox:
shellinabox depends on libssl0.9.8 (>= 0.9.8f-5); however:
Package libssl0.9.8 is not installed.
dpkg: error processing shellinabox (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db ...
Errors were encountered while processing:
shellinabox

So then I tried:
Code: Select all
sudo apt-get install shellinabox

And got:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
shellinabox
1 upgraded, 0 newly installed, 0 to remove and 102 not upgraded.
1 not fully installed or removed.
Need to get 134 kB of archives.
After this operation, 44.0 kB of additional disk space will be used.
Get:1 http://http.debian.net/debian/ wheezy/main shellinabox armel 2.14-1 [134 kB]
Fetched 134 kB in 0s (146 kB/s)
dpkg: dependency problems prevent configuration of shellinabox:
shellinabox depends on libssl0.9.8 (>= 0.9.8f-5); however:
Package libssl0.9.8 is not installed.
dpkg: error processing shellinabox (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
shellinabox
E: Sub-process /usr/bin/dpkg returned an error code (1)

So then I tried a:
Code: Select all
sudo apt-get install libssl0.9.8

And got a:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libssl0.9.8 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libssl0.9.8' has no installation candidate


Does any one know how to install this libssl0.9.8 package?

A quick google returns comments like:

libssl and libcrypto shared libraries needed by programs like apache-ssl, telnet-ssl and openssh.

It is part of the OpenSSL implementation of SSL.


Many thanks....
Posts: 2
Joined: Wed Jun 27, 2012 9:49 am
by IsSuE » Fri Jun 29, 2012 8:34 am
Code: Select all
apt-get install openssl

should install you libssl.so
Posts: 11
Joined: Tue Jun 05, 2012 10:56 am
by rubusrubus » Tue Jan 22, 2013 9:17 pm
Hi, bit of an old posting but I found it googling and see no one answered. This evening I made quite some progress by downloading and compiling on the PI itself . Follow the instructions here:

http://www.linux-mag.com/id/7864/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+LinuxMagazine+%28Linux+Magazine%3A+Top+Stories%29

the last command needs to be run as root so the exact sequence is:
./configure
make
sudo make install


Then run it with shellinaboxd (don't forget the d on the end)

On your windows pc it's then just a case of goign to the URL http://<IP-of-pi>:4200 See the results in firefox here:
Image

No time now to mess with other options like https etc, but it is defnately possible!
Posts: 3
Joined: Tue Jan 22, 2013 9:01 pm
by RTL » Thu Jan 24, 2013 1:43 am
You can also use the Web Shell plugin for BarracudaDrive:

Image

viewtopic.php?p=268362#p268362
User avatar
Posts: 29
Joined: Tue Jan 15, 2013 6:05 pm
Location: California
by vkanth » Mon Jun 17, 2013 2:23 pm
Hello

I've used the source http://shellinabox.googlecode.com/files ... .14.tar.gz and built and run as per http://www.linux-mag.com/id/7864/?utm_s ... Stories%29
I can access it or the set port, login and enter commands, but it clears all results before returning me the prompt again. For instance, if I give an ls command it fetches the results, the clears the screen shows the command prompt. So I'm unable to use this tool :cry: . Anyone experience the same?
Posts: 1
Joined: Mon May 27, 2013 4:53 pm