Skip to content

Commit

Permalink
Create dropbear.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
opiran-club authored Oct 2, 2023
1 parent 3a0c535 commit 051a01c
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Install/dropbear.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#! /bin/bash
# Auto installer script for dropbear
# FREE-IRAN
#

clear
cd /tmp
echo "You Are Installing the Dropbear script for Debian and Ubuntu FREE-IRAN"
echo "================================================="
echo ""
echo "update for the first time..."
apt-get update > /dev/null 2>&1
echo ""
echo "Install Dropbear"
echo ""
apt-get -y install dropbear ssh
sed -i 's/NO_START\=1/NO_START\=0/g' /etc/default/dropbear
sed -i 's/DROPBEAR_PORT\=22/DROPBEAR_PORT\=442/g' /etc/default/dropbear
sed -i 's/DROPBEAR_EXTRA_ARGS\=/DROPBEAR_EXTRA_ARGS\=\"\-p 442 \-p 80 \-p 8080 \-p 8484 \-p 143 \-p 109\"/g' /etc/default/dropbear
sed -i 's/#PermitRootLogin prohibit\-password/PermitRootLogin yes/g' /etc/ssh/sshd_config
sed -i 's/PermitRootLogin without\-password/PermitRootLogin yes/g' /etc/ssh/sshd_config
sed -i 's/#PermitRootLogin no/PermitRootLogin yes/g' /etc/ssh/sshd_config
sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
service dropbear start
service sshd restart
echo ""
echo ""
echo "Enjoy the Dropbear"
echo "Dropbear currently running port: 442, 80, 8080, 8484, 143, 109"
echo ""
sleep 5 ; reboot

0 comments on commit 051a01c

Please sign in to comment.