Use a dedicated key pair (based on Jenkins master unique Identity) automatically injected in container for SSH authentication. If you use a non standard sshd, or provide a custom container command, this might not work. You will then need to disable this option and configure a key pair credentials accordingly.
Not recommended A private key stored into container image is a major security issue.