iTranslated by AI
The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
📝
SSH Password Authentication Disabled by Default in Ubuntu 22.04
This is what happened when I added a new Ubuntu 22.04 LTS environment on Proxmox and couldn't authenticate via SSH using a password. Since I won't be exposing it externally from within my local environment anyway, I'm using password authentication rather than public key authentication.
How to change the settings:
Open the SSH configuration file
sudo nano /etc/ssh/sshd_config
In nano, you can search using Ctrl+W, so search for the relevant entry.
Change no to yes and save.
# Before modification
PasswordAuthentication no
↓
# After modification
PasswordAuthentication yes
Finally, restart the service
sudo systemctl restart ssh
With this, I can now connect via SSH using password authentication.
As some may have noticed, this is a memo for myself.
Discussion