Twenty-five-year-old Jawaun Woods was charged with aggravated battery.
He pleaded guilty but mentally ill.
Police say he stabbed a man at the south shore station in East Chicago last November. Woods also made off with the victim's car.
He could have faced up to 50 years in prison.