You can use the SSH Plugin to run shell commands on a remote machine via ssh.
More documentation available on the Jenkins wiki:
https://wiki.jenkins-ci.org/display/JENKINS/SSH+Plugin
Fork and send a pull request (or create an issue on GitHub or in JIRA)