I'm setting up a server for backing up my desktop box remotely. I want to prevent remote password access to the server, permitting only users with private keys (AKA my desktop box) to access it. How can I block remote password access while allowing physical password access to the server?
SSH – How to Disable Password Access Through SSH
passwordremote accessSecurityssh
Best Answer
Just insert the following to the sshd config on the server (
/etc/ssh/sshd_config
)You might need to reload the ssh service
That should do the trick ;)
For more options type
man sshd_config
in to your terminal.