#!/bin/sh ssh user@host1.example.com script1 ssh user@host2.example.com 'script2;script3;script4'