You have to be legally authorized to work in the U.S. in order to be eligible for a Social Security Number. You cannot work on a J2 or F2 visa.