Download tshock zip file.
https://github.com/Pryaxis/TShock/releases/download/
Shutdown your server.
Extract the contents of the file into your main Terraria servers directory replace all files.
Restart your server
Browse to the directory called /tshock
In that directory will be a file authcode.txt with your authorization code/number written in it.
Join your server and type in console
/auth XXXXX
XXXXX being your authorization code/number