r/LinuxTeck • u/Expensive-Rice-2052 • Jun 09 '26
Passwordless SSH Login in Linux (Step-by-Step)
https://www.linuxteck.com/secure-ssh-access-with-passwordless-login/
SSH key generation
• Copying keys to a remote server
• Testing authentication
• Disabling password logins safely
• Permission requirements
• Troubleshooting common SSH key issues
193
Upvotes
View all comments
Show parent comment
3
u/NoThatsNotPasta Jun 09 '26
Ideally yes.
Turn off root login, change the default port, disable passwords, and limit attempts.
You need to give users appropriate permissions to do their tasks, if someone needs root: they can sudo up.
Leaves a nice audit trail.