Clean surfaces (no oil), flux and a hot iron with a broad tip. A pencil tip will lose heat too quickly, a broad tip will hold the heat. For batteries you don't want to have contact for a long time that heats up the cell. Without enough heat you get a "cold" joint that will pop off easily.