After beating the Johto Elite Four, return to Professor Elm's Lab. He will give you an S.S Ticket so you can board the ship to Kanto from Olivine City's port.