Skip to content

Instantly share code, notes, and snippets.

@polyakoff
Created August 20, 2021 14:52
Show Gist options
  • Save polyakoff/4dcbc95211f74cc0286b9068dc19c3b2 to your computer and use it in GitHub Desktop.
Save polyakoff/4dcbc95211f74cc0286b9068dc19c3b2 to your computer and use it in GitHub Desktop.
# 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