👨‍🏫 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
  • 495
    Views
  • 2
    Participants
Last reply from:
HK-VPN

Online now

Members online
1,147
Guests online
3,705
Total visitors
4,852

Forum statistics

Threads
2,310,149
Posts
29,154,792
Members
1,187,883
Latest member
koshitemblor
Back
Top