Virtual machines
Enable SSH password login
How to enable SSH password login on hostd Linux images.
On Linux images, hostd disables SSH password login by default. This guide explains how to turn it on manually in the guest OS.
Before you begin
- VM in running state.
- Access to the VM by SSH key or noVNC console.
- VM user password from create or reinstall.
Steps
- Sign in to the VM by SSH key or
VM → Console. - Create
/etc/ssh/sshd_config.d/99-password-auth.confwith the linePasswordAuthentication yes. - Restart SSH:
systemctl restart ssh(Debian, Ubuntu) orsystemctl restart sshd(AlmaLinux, Rocky Linux). - Connect by SSH with the VM user password.
Watch out
- Password login is less secure than SSH keys — enable it only if you really need it.
- After reinstall, initial system setup disables SSH password login again — repeat these steps if you still need password SSH.
- If SSH does not respond, check the VM firewall and the guest OS firewall.