Created
August 21, 2024 12:54
-
-
Save denihida1216/49470f1d8d328126c2936e0ce5a13a42 to your computer and use it in GitHub Desktop.
disable login pubkey ssh vps
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
passwd | |
sudo nano /etc/ssh/sshd_config | |
PubkeyAuthentication no | |
PasswordAuthentication yes | |
ChallengeResponseAuthentication no | |
PermitRootLogin yes | |
sudo systemctl restart ssh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment