I didn't see the option anywhere, but it'd great to have a nice easy way to use publish over ssh with pipeline.
Please add support for jenkins pipeline plugin to publish-over-ssh
For your information, all publish-over-ssh component type JENKINS issues related to the Publish Over SSH plugin have been transferred to Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues
Here is the direct link to this issue in Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues/110
And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-ssh-plugin/issues?q=%22JENKINS-49728%22
(Note: this is an automated bulk comment)