There are very infrequent trains that take about half an hour (Like 2 a day - both around lunchtime - I would guess they coincide with the ferry but wouldn't be in the least surprised if they don't))
There are frequent buses.
The train station is at the port - I don't think the buses go all the way to it.