Root SSH access enabler for Debian-based systems — exposes root user for SSH access.
drs (debian-root-ssh) is a minimal script that configures a Debian system to allow root login via SSH. This is extremely insecure and should ONLY be used in disposable test environments, VMs, or containers.
NEVER use this on:
- Production systems
- Internet-facing servers
- Systems with sensitive data
- Any environment where security matters
This script:
- Enables root SSH login (PermitRootLogin yes)
- Sets up passwordless root access
- Disables basic SSH hardening
| File | Description |
|---|---|
root.sh |
Main script — enables root SSH access |
README.md |
This file (WARNING included) |
wget https://raw.githubusercontent.com/MatthewCaples/drs/master/root.sh
chmod +x root.sh
./root.sh- Installs
openssh-serverif not present - Modifies
/etc/ssh/sshd_config:PermitRootLogin yesPasswordAuthentication yes
- Sets root password (or enables key-based auth)
- Restarts SSH service
To restore secure defaults:
# Edit /etc/ssh/sshd_config
PermitRootLogin no
PasswordAuthentication no
# Restart SSH
systemctl restart sshNo license specified — treat as public domain / unlicensed. Use at your own risk.
Created 2016 — testing utility for disposable Debian VMs only.