Skip to content

Instantly share code, notes, and snippets.

@Hotfirenet
Last active March 1, 2017 08:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hotfirenet/a58ff67ccc98bda81832bb9482209419 to your computer and use it in GitHub Desktop.
Save Hotfirenet/a58ff67ccc98bda81832bb9482209419 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
adduser johan
usermod -G root,sudo,adm johan
echo "AllowUsers johan" >> /etc/ssh/sshd_config
service ssh restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment