Whether you locked yourself out of SSH while hardening sshd_config, upgraded from RS 1000 G12.5 (128 GB) to RS 2000 G12.5 (256 GB NVMe) and wonder why df -h still shows 128 GB, or need LUKS2 full-disk encryption for sensitive European customer data, Netcup’s Server Control Panel (SCP) gives you bare-metal-style out-of-band recovery tools.
1. Emergency SSH / Root Recovery via SCP Rescue System (chroot)
If a bad /etc/fstab mount, broken ufw/nftables rule, or lost SSH key prevents boot or login:
- Log in to SCP (
servercontrolpanel.de) → Select Server →Rescueand click Activate Rescue System (copy the temporary one-timerootpassword displayed in SCP, then trigger a power cycle). - SSH into your server’s IP as
root, inspect your partition layout withlsblk -f, and mount your root partition cleanly into/mnt:
# 1. Inspect partitions (typically /dev/vda2 or /dev/vda3 on Debian/Ubuntu G12.5 images)
lsblk -f
# 2. Mount root filesystem & bind virtual kernel filesystems for chroot
mount /dev/vda2 /mnt
for dir in dev dev/pts proc sys run; do mount --bind "/$dir" "/mnt/$dir"; done
chroot /mnt /bin/bash
# 3. Repair authorized_keys, reset password, or fix /etc/fstab / sshd_config
passwd root
sshd -t # Validate SSH config syntax before rebooting!
exit
# 4. Unmount cleanly & reboot back into normal disk boot (Rescue auto-disables after 1 boot)
umount -R /mnt
reboot
2. Non-Destructive NVMe Expansion After a Tariff Upgrade (growpart)
When you upgrade a Netcup VPS or Root-Server to a larger tier in CCP, two steps are mandatory before Linux sees the extra NVMe capacity:
- Create a
€0SCP Snapshot (live online CoW snapshot on x86 Root-Servers and x86 VPS; onVPS 500–8000 ARM G12.5, create an Offline Snapshot by stopping the VM first), then perform a fullStop+Startinside SCP (a warmsudo rebootinside SSH does not re-initialize the QEMU VirtIO block size!). - Once
lsblkshows the larger/dev/vdasize, expand your root partition and filesystem online with zero data loss:
sudo apt update && sudo apt install -y cloud-guest-utils
# Check which partition number holds '/' (e.g. vda2 or vda3)
lsblk
# Expand partition 2 to fill 100% of new /dev/vda capacity (note the space before '2'!)
sudo growpart /dev/vda 2
# Resize ext4 online (if running XFS instead, run: sudo xfs_growfs /)
sudo resize2fs /dev/vda2
df -h /
3. GDPR / Compliance Hardening: LUKS2 Full-Disk Encryption with Remote SSH Unlock
For workloads storing regulated PII, healthcare, or client secrets, combining a minimal Debian custom ISO install (LUKS2 root volume) with dropbear-initramfs lets you unlock the encrypted NVMe drive remotely over SSH at boot—without logging into the SCP web VNC console:
# Inside your LUKS2-installed Debian 12 system:
sudo apt update && sudo apt install -y dropbear-initramfs
# 1. Listen on port 2222 (avoids host-key conflict with OpenSSH on port 22) & disable password auth
sudo sed -i 's/^#*DROPBEAR_OPTIONS=.*/DROPBEAR_OPTIONS="-I 180 -j -k -p 2222 -s -c cryptroot-unlock"/' \
/etc/dropbear/initramfs/dropbear.conf
# 2. Add your workstation Ed25519 public key to initramfs Dropbear
cat ~/.ssh/authorized_keys | sudo tee /etc/dropbear/initramfs/authorized_keys >/dev/null
sudo chmod 600 /etc/dropbear/initramfs/authorized_keys
# 3. Bind static IPv4 in initramfs.conf for custom ISO installs (replace client IP, gateway, netmask & NIC)
sudo sed -i '/^IP=/d' /etc/initramfs-tools/initramfs.conf
echo 'IP=203.0.113.42::203.0.112.1:255.255.252.0:netcup-luks:ens3:off' \
| sudo tee -a /etc/initramfs-tools/initramfs.conf >/dev/null
# 4. Rebuild initramfs (remember to allow TCP 2222 from your admin IP in SCP Firewall!)
sudo update-initramfs -u -k all
On reboot, simply run ssh -p 2222 root@YOUR_SERVER_IP, enter your LUKS2 passphrase at the prompt, and the boot sequence immediately hands off to your hardened Debian runtime (see our Docker & SCP Firewall Guide and SCP REST API Snapshot Guide).
RS 1000 G12.5
2 Months Free · Valid for New & Existing Customers (12M Term)