Skip to content

Instantly share code, notes, and snippets.

View rexmolfese's full-sized avatar

Rex Molfese rexmolfese

View GitHub Profile
#!/bin/bash
if [ "$EUID" -ne 0 ]; then
echo "Run as root"
exit 1
fi
read -p "Enter the username to set up the SSH key for: " ssh_user
if ! id "$ssh_user" &>/dev/null; then