Night sky/ time photography

I want to take picture of the night sky (moon or stars)

I have a Canon T31 Rebel, a remote and tripod.

I got a 18-55mm lens and my other lens goes to 300m (can't remember properly the correct specs)

What would be the specs i should put on my settings on my camera to be able to have some beautiful picture of the moon or stars.

and tricks to be able to have a good focus on the moons or stars

I live deep in the woods, so no light pollution :D

I'm a beginner be kind :)