Skip to content

Instantly share code, notes, and snippets.

@briansunter
briansunter / ssh-check.sh
Created November 29, 2025 03:57
Script to check basic ssh access patterns
#!/bin/sh
# SSH Login Checker - Works on any Linux
# Usage: ./ssh-check.sh <ip> [user] [password]
IP="$1"; USER="${2:-root}"; PASS="$3"
[ -z "$IP" ] && echo "Usage: $0 <ip> [user] [password]" && exit 1
if [ -n "$PASS" ]; then
RUN="sshpass -p '$PASS' ssh -o StrictHostKeyChecking=no $USER@$IP"
else
@andrewnk
andrewnk / gist:ecba8448b5009eaa3ae1433c549d881d
Created July 20, 2021 01:01
Resize partition in alpine
# after the virtual disk has already been expanded (e.g. in proxmox)
apk add --no-cache cfdisk e2fsprogs-extra
# choose partition then "Resize" > "Write" (to finalize)
cfdisk
# replace * with partition you are resizing
resize2fs /dev/*