Add -T to ssh master as it doesn't need a TTY.