Only restart SSH when needed.