Skip to content

Instantly share code, notes, and snippets.

@jonasbjork
Created April 9, 2024 09:42
Show Gist options
  • Save jonasbjork/5f28dbf9f4bbb690171e9b92aa3351db to your computer and use it in GitHub Desktop.
Save jonasbjork/5f28dbf9f4bbb690171e9b92aa3351db to your computer and use it in GitHub Desktop.
Kommandon för att snabbt fixa till lerniamaskinerna
sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config
systemctl restart sshd
useradd -s /bin/bash -m lernia
gpasswd -a lernia sudo
passwd lernia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment