As I learn from the comments to this question a non elliptic operator on a compact manifold can not be a fredholm operator.
However, I learn also from the conversations in the same post that the hypoelliptic operators can be Fredholm but non elliptic operators
On the other hand it seems that the following operator is fredholm(At least, algebraically):
For a Morse function $F:S^{2}\to \mathbb{R}$ which has only two singular points(one max at N and one min at S), define $D:C^{\infty}(S^{2})\to C^{\infty}(S^{2})$ with $D(g)= \nabla F. \nabla g$.
The simple dynamical structure of the gradient vector field $\nabla F$ easily shows that the kernel of $D$ is one dimensional and codimension of the range is 2. So apparently we have a fredholm operator.
Is not this a contradictory situation?
It is written in the comments to the above question that this is a fredholm opeartor, algebrically but not analytically. Can one help me to understand this statement?