Secure Root Login with SSH Keys
Secure Root Login with SSH Keys
- Create a key on your PC:
ssh-keygen -t ed25519 - Copy it:
ssh-copy-id root@YOUR_IPor paste into~/.ssh/authorized_keys. - In
/etc/ssh/sshd_config, setPasswordAuthentication no, thensystemctl reload sshd.