fixing
This commit is contained in:
parent
5c5c01ed10
commit
81695461b4
1 changed files with 8 additions and 4 deletions
12
auto.sh
12
auto.sh
|
@ -8,6 +8,10 @@ fi
|
||||||
|
|
||||||
apt-get install git libssl-dev libpam0g-dev zlib1g-dev dh-autoreconf
|
apt-get install git libssl-dev libpam0g-dev zlib1g-dev dh-autoreconf
|
||||||
|
|
||||||
|
pacman -S git openssl autoconf automake make gcc
|
||||||
|
|
||||||
|
sleep 5
|
||||||
|
|
||||||
cd /opt/
|
cd /opt/
|
||||||
|
|
||||||
git clone https://github.com/simono41/shellinabox.git && cd shellinabox
|
git clone https://github.com/simono41/shellinabox.git && cd shellinabox
|
||||||
|
@ -30,15 +34,15 @@ useradd webssh
|
||||||
|
|
||||||
mkdir /home/webssh
|
mkdir /home/webssh
|
||||||
|
|
||||||
chmod 770 -R /home/webssh
|
chmod 770 -R /home/webssh/
|
||||||
|
|
||||||
chown -R webssh /home/webssh
|
chown -cR webssh:webssh /home/webssh/
|
||||||
|
|
||||||
passwd "webssh <<EOT
|
passwd webssh <<EOT
|
||||||
webssh
|
webssh
|
||||||
webssh
|
webssh
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
cp shellinabox_sshwrapper.sh /home/webssh/
|
cp shellinabox_sshwrapper.sh /home/webssh/
|
||||||
|
|
||||||
systemctl start shellinabox.service
|
systemctl start shellinabox.service
|
||||||
|
|
Loading…
Reference in a new issue