Created
April 9, 2024 09:42
-
-
Save jonasbjork/5f28dbf9f4bbb690171e9b92aa3351db to your computer and use it in GitHub Desktop.
Kommandon för att snabbt fixa till lerniamaskinerna
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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