Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Alexfilus/e9d3dcd1a3daf69faf2500ad19db8cb9 to your computer and use it in GitHub Desktop.
Save Alexfilus/e9d3dcd1a3daf69faf2500ad19db8cb9 to your computer and use it in GitHub Desktop.
disable root ssh login
useradd -m -c "Admin User" lord
passwd lord
usermod -aG sudo lord
sudo nano /etc/ssh/sshd_config
PermitRootLogin yes -> no
systemctl restart sshd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment