This article will guide you on how to enable RSA Key login for SSH in Debian 12 and Ubuntu 22.04.
Since OpenSSH 8.3, RSA Key login has been disabled by default and is considered insecure.
So starting with Ubuntu 22.04 and Debian 12, if you need to use RSA Key login, you will need to enable it manually.
Enabling RSA Key login
Instead of modifying /etc/ssh/sshd_config
, which is the default SSH configuration file, we just need to add a /etc/ssh/sshd_config.d/enable_rsa_keys.conf
configuration file:
Restart the SSH service
Then simply restart the SSH service.
|
|
or
|
|
Both of these services are the same under Debian 12.
We can see that sshd is actually an alias for the ssh service:
At this point you will be able to log in to SSH using the RSA Key.