Attaching the tubes to ferrules