Created
December 11, 2018 03:35
-
-
Save steebchen/3cf8d019b9c0615eeac65f16c4fd1807 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 "s/#\{0,1\}Port .*/Port xxxx/" /etc/ssh/sshd_config | |
sudo sed -i "s/#\{0,1\}PasswordAuthentication yes/PasswordAuthentication no/" /etc/ssh/sshd_config | |
service sshd reload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment