👨‍🏫 Tutorial Install Dropbear SSH to be used as SSH VPN in VPS Debian 12

HK-VPN

Fanatic
1. Should be logged in as root or run this command in your console:
Code:
sudo su

2. Update and upgrade the VPS, run this command in your console:
Code:
apt-get clean && apt-get update && apt-get upgrade -y && apt-get full-upgrade -y && apt-get --fix-missing install -y && apt-get autoremove -y && reboot

3. Install Dropbear SSH, run this command in your console:
Code:
apt install dropbear -y

4. Add this line, make this the first line in /etc/default/dropbear
Code:
NO_START=0

* OPTIONAL, to change the port of dropbear, edit this line and change to your desired port, for example, listen to port 80
Code:
DROPBEAR_PORT=80
* Make sure you allow listening port on your firewall

5. Now, go to /etc/shells, add these lines at the end
Code:
/bin/false
/usr/sbin/nologin

6. FINALLY, reboot your VPS, run this command in your console:
Code:
reboot
 

About this Thread

  • 2
    Replies
  • 490
    Views
  • 2
    Participants
Last reply from:
HK-VPN

Online now

Members online
493
Guests online
2,908
Total visitors
3,401

Forum statistics

Threads
2,299,308
Posts
29,129,230
Members
1,201,943
Latest member
Bauti2011
Back
Top