Source: GTA VI, in-game

How to Get a Tank in GTA 6

Steal a Rhino from Mile Zero Air Station. The military base fills Goose Key, the island at the far southwest corner of the map in Mariana County. You can drive there from Chapter 1, right after the opening mission. No story unlock, no key.

The tanks are parked in a row at the south end of the base, near the big hangars. Getting inside the fence is the hard part. Ram the main gate, or follow the southern access road past the checkpoints to a dirt mound by the southeast corner: that is a stunt jump, and it throws you over the perimeter fence. Once you are in, soldiers open fire, so move. The Rhinos are unlocked. Walk up and climb in like any other vehicle.

Does stealing a tank unlock a trophy?
Yes, Challenging Tank. It can pop the moment you take the Rhino. If nothing shows up, turn the cannon on the soldiers coming for you and keep firing until it does.
Source: GTA VI, in-game
Can you keep the tank?
No. A Rhino does not fit in a garage, so it cannot be registered as a personal vehicle. Every tank is a joyride. Want another one, go back for it.
Source: GTA VI, in-game
How do you survive in the tank?
Keep moving and use the cannon on whatever chases you. The army answers with soldiers, helicopters and more armor, and the Wanted Level climbs the longer you fight. Bring body armor for the drive in. More on the stars: the wanted system.
Source: GTA VI, in-game