You have to buy the ticket at Fort Clinton next to Battery Park. Then they will show you the way (it's simple there are barriers to follow) to the boat that goes to the Statue of Liberty and Ellis Island.
You will need to buy a ticket for the ferry, US $ 19. Once you have that, you go through security, then board. You can visit Ellis Island and the Statue of Liberty.
Thanks! Your answer is awaiting moderation.