Why a sit works as a greeting
A sit is a useful greeting because most dogs cannot sit and jump at the same time. When your dog learns to sit as people arrive, the sit replaces the jump. It also gives your dog a clear job, which many dogs find easier than waiting with no instructions.
Start with a reliable sit at home
Before you use the sit at the door, make sure your dog knows it well in a quiet room. If your dog does not yet respond to a sit, learn how to teach dog to sit first. Practice in short sessions, with rewards for each sit, until the dog responds consistently.
Ask for the sit before a greeting
When someone is about to greet your dog, give the sit cue before they reach it. Reward the sit right away, while the dog is still seated. Then let the person greet the dog. If the dog stands up, pause and ask for the sit again. Keep the greeting calm and steady.
Build up to visitors
Once the sit is reliable at home, practice with a helper. Have them come to the door, wait for the sit, and then give a gentle pet. Repeat it several times in a session. Increase the difficulty slowly, such as with a louder entry, more movement or a second person. If the dog struggles, return to an easier version.
Hold the sit while people move
Holding the sit is harder than starting it. Ask your dog to stay in the sit while the person moves closer. You can ask the person to take a step, then give the dog a reward. Many owners find that how to teach dog to stay is a helpful companion skill here, since it builds the habit of holding a position.
Troubleshooting when the dog stands up
If the dog stands up during a greeting, do not scold it. Calmly ask for the sit again, reward it when it happens, and make the greeting shorter next time. It can also help to lower the excitement by playing or walking before people arrive.
When to ask for help
Dog training results vary, and some dogs need more support. If the dog stays excited, pushes people or knocks them over even when seated, consider asking a qualified trainer for advice.