The deal with Greece comes as Ukraine faces persistent Russian attacks on cities and energy networks, aiming to leave the country cold this winter.