Compare commits

..

No commits in common. "master" and "v2.20" have entirely different histories.

87 changed files with 22 additions and 124 deletions

0
.gitignore vendored Executable file → Normal file
View file

0
AUTHORS Executable file → Normal file
View file

0
CHANGELOG.md Executable file → Normal file
View file

0
COPYING Executable file → Normal file
View file

0
GPL-2 Executable file → Normal file
View file

0
INSTALL.Debian Executable file → Normal file
View file

0
Makefile.am Executable file → Normal file
View file

0
NEWS Executable file → Normal file
View file

0
README Executable file → Normal file
View file

0
README.Fedora Executable file → Normal file
View file

27
README.md Executable file → Normal file
View file

@ -42,17 +42,34 @@ Build
For building **shellinabox** from source on Debian or RHEL based systems use commands
listed below. This will create executable file `shellinaboxd` in project directory.
1. Clone the autotools
1. Install dependencies
```
wget https://raw.githubusercontent.com/simono41/shellinabox/master/auto.sh
apt-get install git libssl-dev libpam0g-dev zlib1g-dev dh-autoreconf
```
or
```
yum install git openssl-devel pam-devel zlib-devel autoconf automake libtool
```
3. Run autotools
2. Clone source files and move to project directory
```
chmod +x auto.sh
./auto.sh
git clone https://github.com/shellinabox/shellinabox.git && cd shellinabox
```
3. Run autotools in project directory
```
autoreconf -i
```
4. Run configure and make in project directory
```
./configure && make
```
#### Debian package

0
TODO Executable file → Normal file
View file

56
auto.sh
View file

@ -1,56 +0,0 @@
#!/bin/bash
set -ex
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
echo "Als root Angemeldet"
if [ -f /usr/bin/apt ]; then
apt update
apt install git libssl-dev libpam0g-dev zlib1g-dev dh-autoreconf
fi
if [ -f /usr/bin/pacman ]; then
pacman -Sy git openssl autoconf automake make gcc
fi
cd /opt/
git clone https://github.com/simono41/shellinabox.git
cd shellinabox
autoreconf -i
./configure && make
cp shellinabox.service /etc/systemd/system/
systemctl daemon-reload
systemctl enable shellinabox.service
# adduser
echo adduser webssh
useradd webssh
mkdir /home/webssh
cp shellinabox_sshwrapper.sh /home/webssh/
chmod 770 -R /home/webssh/
chown -cR webssh:webssh /home/webssh/
passwd webssh <<EOT
webssh
webssh
EOT
systemctl start shellinabox.service &

0
configure.ac Executable file → Normal file
View file

0
contrib/README-siab.rb Executable file → Normal file
View file

0
contrib/siab.rb Executable file → Normal file
View file

0
debian/README.available vendored Executable file → Normal file
View file

0
debian/README.enabled vendored Executable file → Normal file
View file

0
debian/README.source vendored Executable file → Normal file
View file

0
debian/changelog vendored Executable file → Normal file
View file

0
debian/compat vendored Executable file → Normal file
View file

0
debian/control vendored Executable file → Normal file
View file

0
debian/copyright vendored Executable file → Normal file
View file

0
debian/docs vendored Executable file → Normal file
View file

0
debian/shellinabox.default vendored Executable file → Normal file
View file

0
debian/shellinabox.dirs vendored Executable file → Normal file
View file

0
debian/shellinabox.examples vendored Executable file → Normal file
View file

0
debian/shellinabox.lintian-overrides vendored Executable file → Normal file
View file

0
debian/shellinabox.preinst vendored Executable file → Normal file
View file

0
debian/shellinabox.prerm vendored Executable file → Normal file
View file

0
debian/source/format vendored Executable file → Normal file
View file

0
debian/source/include-binaries vendored Executable file → Normal file
View file

0
debian/source/options vendored Executable file → Normal file
View file

0
demo/demo.html Executable file → Normal file
View file

0
demo/demo.jspp Executable file → Normal file
View file

0
demo/demo.xml Executable file → Normal file
View file

0
demo/keyboard.html Executable file → Normal file
View file

0
etc-pam.d-shellinabox-example Executable file → Normal file
View file

0
libhttp/hashmap.c Executable file → Normal file
View file

0
libhttp/hashmap.h Executable file → Normal file
View file

0
libhttp/http.h Executable file → Normal file
View file

0
libhttp/httpconnection.c Executable file → Normal file
View file

0
libhttp/httpconnection.h Executable file → Normal file
View file

0
libhttp/libhttp.sym Executable file → Normal file
View file

0
libhttp/server.c Executable file → Normal file
View file

0
libhttp/server.h Executable file → Normal file
View file

0
libhttp/ssl.c Executable file → Normal file
View file

0
libhttp/ssl.h Executable file → Normal file
View file

0
libhttp/trie.c Executable file → Normal file
View file

0
libhttp/trie.h Executable file → Normal file
View file

0
libhttp/url.c Executable file → Normal file
View file

0
libhttp/url.h Executable file → Normal file
View file

0
logging/logging.c Executable file → Normal file
View file

0
logging/logging.h Executable file → Normal file
View file

0
m4/.gitignore vendored Executable file → Normal file
View file

0
misc/embedded.html Executable file → Normal file
View file

0
misc/preview.gif Executable file → Normal file
View file

Before

Width:  |  Height:  |  Size: 930 KiB

After

Width:  |  Height:  |  Size: 930 KiB

0
misc/preview.png Executable file → Normal file
View file

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 79 KiB

22
sgit
View file

@ -1,22 +0,0 @@
#!/bin/bash
set -ex
if [[ "--help" == "${1}" ]]; then
echo "bash ./sgit user.email commit"
fi
if [[ -z "${2}" ]]; then
echo "Bitte email und commit angeben!!!"
exit 1
fi
git config --global user.email "${1}"
git config --global user.name "${1}"
git status
git pull
git add --all
git commit --all -m "${2}"
git show
git push
git status

View file

@ -1,9 +0,0 @@
[Unit]
Description=shellinabox
[Service]
Type=oneshot
ExecStart=/opt/shellinabox/shellinaboxd -t --service=/:webssh:webssh:HOME:'/home/webssh/shellinabox_sshwrapper.sh'
[Install]
WantedBy=multi-user.target

0
shellinabox/beep.wav Executable file → Normal file
View file

0
shellinabox/black-on-white.css Executable file → Normal file
View file

0
shellinabox/cgi_root.html Executable file → Normal file
View file

0
shellinabox/color.css Executable file → Normal file
View file

0
shellinabox/enabled.gif Executable file → Normal file
View file

Before

Width:  |  Height:  |  Size: 847 B

After

Width:  |  Height:  |  Size: 847 B

0
shellinabox/externalfile.c Executable file → Normal file
View file

0
shellinabox/externalfile.h Executable file → Normal file
View file

0
shellinabox/favicon.ico Executable file → Normal file
View file

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

0
shellinabox/keyboard-layout.html Executable file → Normal file
View file

0
shellinabox/keyboard.png Executable file → Normal file
View file

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

0
shellinabox/launcher.c Executable file → Normal file
View file

0
shellinabox/launcher.h Executable file → Normal file
View file

0
shellinabox/monochrome.css Executable file → Normal file
View file

0
shellinabox/print-styles.css Executable file → Normal file
View file

0
shellinabox/privileges.c Executable file → Normal file
View file

0
shellinabox/privileges.h Executable file → Normal file
View file

0
shellinabox/root_page.html Executable file → Normal file
View file

0
shellinabox/service.c Executable file → Normal file
View file

0
shellinabox/service.h Executable file → Normal file
View file

0
shellinabox/session.c Executable file → Normal file
View file

0
shellinabox/session.h Executable file → Normal file
View file

0
shellinabox/shell_in_a_box.jspp Executable file → Normal file
View file

0
shellinabox/shellinaboxd.c Executable file → Normal file
View file

0
shellinabox/shellinaboxd.man.in Executable file → Normal file
View file

0
shellinabox/usercss.c Executable file → Normal file
View file

0
shellinabox/usercss.h Executable file → Normal file
View file

View file

@ -1,32 +0,0 @@
#!/bin/bash
#
set -ex
# 
read -p "SSH remote host (hostname or ip address) [localhost] : " host;
[[ -z "${host}" ]] && host=localhost;
#
read -p "If a puplic_key authentification?: [y/N] : " puplic;
#
read -p "SSH remote port [22] : " port;
[[ -z "${port}" ]] && port=22;
#
read -p "SSH remote username [pi] : " username;
[[ -z "${username}" ]] && username=pi;
#
if [ "$puplic" == "y" ];
then
read -p "How is your public_key?: " key;
echo $key > ~/.ssh/id_rsa.pub;
rm ~/.ssh/id_rsa;
echo "Enter your private id here and press the enter key for a new line !!!";
id=null
while [ "$id" != "" ];
do
read -p "How is your id_rsa key?: " id;
echo $id >> ~/.ssh/id_rsa;
done
exec ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p $port $username@$host;
else
exec ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p $port $username@$host;
fi