Last active
March 1, 2017 08:45
-
-
Save Hotfirenet/a58ff67ccc98bda81832bb9482209419 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
#!/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