The best way to tame a stego is to find one stuck and helpless between some trees. Then they won't attack you and you can knock it out pretty easily.

More Stegosaurus Encountering Tips