Skip to content

Instantly share code, notes, and snippets.

@ymc-tron
ymc-tron / enable_root_ssh.sh
Created September 10, 2025 08:31
Enable root SSH login
#!/bin/bash
echo "--- Step 1: Installing OpenSSH Server ---"
# The -y flag automatically confirms the installation
apt install openssh-server -y
if [ $? -ne 0 ]; then
echo "ERROR: OpenSSH Server installation failed. Please check network connectivity or package repositories."
exit 1
fi