Key-based authentication with maven-publish via sftp

I’m currently using the maven-publish plugin to publish the artifacts to my local server via sftp providing a username and password. But how do I manage to use key-based authentication? Currently it seems not supported by the plugin.

There is a slightly outdated plugin called maven-publish-auth which doesn’t work providing a privateKey file via configuration in ~/.m2/settings.xml.