Moved ssh stuff into its own script.