Created
August 20, 2021 14:52
-
-
Save polyakoff/4dcbc95211f74cc0286b9068dc19c3b2 to your computer and use it in GitHub Desktop.
This file contains 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
# https://esc.sh/blog/how-to-create-new-normal-user-with-sudo/index.html | |
useradd -m username | |
# -m creates a home directory for the user. | |
passwd username | |
usermod -a -G sudo username | |
chsh -s /bin/bash username | |
sudo systemctl enable ssh | |
sudo service ssh restart | |
# make sure the port(s) (22 for SSH) are open and forwarded in the router settings |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment