To be eligible for a green card you need to have an employer petition you for a green card on the basis of the job offer or you need to have a qualifying family relative petition for your green card on the basis of your relation.  You cannot just get a green card because you are a student.