Skip to main content

Set up Server

Initial Setup

# First, install OS and SSH into root user
passwd
adduser hermann
usermod -aG sudo hermann
su hermann
ssh-keygen -b 4096
echo <SSH_PUBKEY> > ~/.ssh/authorized_keys
# Check if sudo works
exit
# Check if login using SSH key works
nano /etc/ssh/sshd_config # set PasswordAuthentication, PermitRootLogin to no
apt update
apt install git