On /etc/ssh/sshd_config
:
- Disable Root Logins
Best: PermitRootLogin no
Good: PermitRootLogin without-password
(requires PubkeyAuthentication yes
)
- Limit user Logins
AllowUsers alice bob
- Disable Protocol 1
Protocol 2
- Use a Non-Standard Port
Port 2345
- Use Public/Private Keys for Authentication
PubkeyAuthentication yes
Disable password authentication forcing use of keys:
PasswordAuthentication no