That could work or it could be a recipe for complete ruin of a good dog.
Dogs bite for all kinds of reasons, not all of them necessarily their fault. I'd caution against assuming a dog suddenly has turned surly for no reason.
1) Get a Vet's health clearance. Double check your actions when you lead the dog into the kennel. Are you touching it somehwere or grabbing it in a place it might be injured or sore?
2) Is it a young male that hasn't been cut yet? Your vet will likely discuss this with you....
3) Take the bark collar or shock collar off and try leading it in. If it goes in without trouble, there's your answer. They don't always function perfectly and controllers can be misused if they fall into wrong hands. If it still won't go in, it may still be the collar. A bad malfunction with a collar might be attributed by the dog to the place it was when it happened.
3) Find another kennel somewhere and see what the dog does when led into it. Use this as a guide.
3a) If it goes into another kennel with no problems, something about your kennel environment has changed. Figure that out as if it's an ongoing thing it's going to continue to be a battle.
3b) If it won't go into ANY kennel, my guess is something happened at one time when it was in your kennel.
Probably some other things would come to mind with a bit more thought.