Created
June 5, 2019 09:01
-
-
Save Alexfilus/e9d3dcd1a3daf69faf2500ad19db8cb9 to your computer and use it in GitHub Desktop.
disable root ssh login
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
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