jenkins.plugins.publish_over.BapPublisherException: Failed to connect and initialize SSH connection. Message: [Failed to connect session for config [Name]. Message [Auth fail for methods 'publickey']]

Jenkins setup:

jenkins.plugins.publish_over.BapPublisherException: Failed to connect and initialize SSH connection. Message: [Failed to connect session for config [name]. Message [Auth fail for methods ‘publickey’]]