Sterilization can be a solution to combat the obvious sexual behavior of your dog. Especially if it makes it particularly territorial and therefore aggressive with other dogs.
However, it is essential that sterilization be performed when the animal is still young. Indeed, such sexual behavior can be rooted in an older dog. The latter then practices it more out of habit than out of wanting to reproduce.
If your dog is unmanageable when he sees a bitch in heat or any other element likely to make him want to ride it, you will have to learn to master it. It may take time, but it is an absolutely necessary step to make life with him more enjoyable.
For that, you will have to work on obedience on a daily basis, until your dog is fully educated and responds to the least of your orders. The simplest is to opt for a positive education and distract your dog with a toy while giving him a basic order when he begins to ride a human, an object or an animal.
For example, repeat the word “stop” as soon as your dog starts to adopt this behavior. Then make sure to shift your attention to a toy or treat. If he succeeds, congratulate him. As time goes by, he will associate this word with stopping this behavior.
If you think you can not do it alone, do not hesitate to ask a canine educator. You can also go to the closest dog club in your area.
If riding anything and everything is related to your dog’s excitement, then it is strongly recommended that he exercise daily and long enough to calm him down.
In fact, getting your dog to do sport may moderate his sexual behavior. Not only because he will be too tired to indulge in it, but also because he has been stimulated in another way.