I've just installed Debian on a server and I'm running into issues connecting via SSH. Despite entering the correct passwords, I'm getting repeated 'Permission Denied' messages. I've already checked the SSH configuration file at /etc/ssh/sshd_config and attempted to disable password authentication, but it still prompts for a password. I've tried logging in both as root and a regular user, but no luck. Can anyone help troubleshoot this? I'm also open to joining an IRC channel for guidance. Thanks in advance!
3 Answers
Yeah, the directive you turned off only applies to users other than root. It's better to learn about SSH keys since they're more secure compared to password access. While it's possible to enable root access with a password, it's strongly discouraged in today’s usage of SSH.
If you're trying to log in as root, that access might be disabled for security reasons. Using SSH keys is the way to go. You can create a key with `ssh-keygen -t ed25519` and copy the public key to the server's authorized_keys file, but that usually requires a password for the first login.
Disabling password authentication means you won't be able to log in using just a password anymore. If you want to connect without prompting for a password, you'll need to use SSH keys instead. Also, try running your ssh command with the -v option for more detailed info on the connection issue.
Related Questions
How To Get Your Domain Unblocked From Facebook
How To Find A String In a Directory of Files Using Linux