There is "nothing greater" than public service and "if some opportunity at some point comes along I would certainly consider it," he told a group of French foreign trade advisors yesterday in Miami.
Petraeus, hailed by some in the US for changing the course of the Iraq war, was given two years' probation and fined USD 100,000 in April for providing classified information to his mistress and biographer Paula Broadwell.
Petraeus served as the head of the CIA after retiring from the military. He resigned from the post after his affair became public.
Once a rising star in the US who some regarded as presidential material, Petraeus ruled out a run for the country's highest office.
More From This Section
"Even before the missteps that I've had I was never going to run for office," he said. "My family is adamantly opposed to it and frankly my politics don't necessarily work for the primaries of either of our parties."
Asked about the role of the US in the world, Petraeus said the country is rebounding to be a global leader after the taxing wars in Iraq and Afghanistan.
"The pendulum has swung back, there's a keen recognition in Washington that US leadership is needed.