Created
February 3, 2023 13:25
-
-
Save DPS0340/d8d1922403aa41186d30c89c9a9d29c8 to your computer and use it in GitHub Desktop.
disable password auth on ssh server
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
sudo sed -i -E 's/#?PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config | |
sudo service ssh restart | |
sudo service sshd restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment