There's no direct connection. A crane on the deck of the Enterprise has swung itself over to dangle a small wire cage over the tanker, just a few feet off the deck; it bobs up and down and glides back and forth over a fairly large area as the two ships rock in different ways and it swings like a pendulum at the end of its cable. It has a door on one side, which is hanging open.