This Plugin was derived from the very cool SCP Plugin.
You can use the SSH Plugin to run shell commands on a remote machine via ssh.
First go to the global configuration page and add a SSH site.
For your job select a configured site and enter the shell commands that should be executetd before and after the build.
Log will look like this.
1.1 removed isEmpty() for 1.5 comp; better input areas
1.0 Initial release.