SSH error with shell provisioner

Hey there,

I have an issue with my two-step packer build.

The source is a qemu vm provided with ssh user and password.
We want to avoid explicit ssh key parsing.

The first provisioner uses ansible and works fine.
The ansible executes devsec hardening which enables password as auth method.

The second uses shell and instantly gets the Error:
packer-provisioner-shell plugin: Retryable error: Error uploading script: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

It seems, that the shell provider can’t use the provided ssh password.