Skip to content

Instantly share code, notes, and snippets.

@denihida1216
Created August 21, 2024 12:54
Show Gist options
  • Save denihida1216/49470f1d8d328126c2936e0ce5a13a42 to your computer and use it in GitHub Desktop.
Save denihida1216/49470f1d8d328126c2936e0ce5a13a42 to your computer and use it in GitHub Desktop.
disable login pubkey ssh vps
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