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

Online now

Members online
1,244
Guests online
1,125
Total visitors
2,369

Forum statistics

Threads
2,287,334
Posts
29,043,959
Members
1,216,472
Latest member
sanwajen202
Back
Top