Skip to content

Instantly share code, notes, and snippets.

@kevsersrca
Created March 8, 2018 07:30
Show Gist options
  • Save kevsersrca/c792fd5d42170c495ef3c30fcb617049 to your computer and use it in GitHub Desktop.
Save kevsersrca/c792fd5d42170c495ef3c30fcb617049 to your computer and use it in GitHub Desktop.
sed
- [ sed, -i, -r, "s/PermitRootLogin prohibit-password/PermitRootLogin yes/g", /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