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

HK-VPN

Established
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
  • 455
    Views
  • 2
    Participants
Last reply from:
HK-VPN

Online now

Members online
1,020
Guests online
1,290
Total visitors
2,310

Forum statistics

Threads
2,273,311
Posts
28,948,759
Members
1,235,696
Latest member
jharizel
Back
Top