Other commands can be substituted for ‘sit’ if you prefer, such as ‘stay’ or ‘down.’ However, if your dog simply gets too excited to execute these commands properly (as is often the case, especially with puppies) try diverting their attention elsewhere. Ask them to go find their ball, or a favorite toy, as a way to distract them and expend some energy. And, as always, reward the good behavior with praise.
If a dog is stressed or afraid, their demeanor and typical behaviors will change. If you see this in your dog (or really any dog you know) you should step back and check on your dog. Are they hurt? Did a new dog come around they don’t know? Has the weather changed? Is it hot outside? When was the last time they had a chance to go outside to pee or poop?
Unless given a command to jump, a dog should never be allowed to jump on humans. A dog that jumps on humans of its own free will is a dog that does not respect the person it is jumping on. Even those cute little toy dogs should not be allowed to jump on people. While you may think it is cute, it is not cute to everyone else. Not only is it annoying to most people to have someone else's dog jump on them, it can also be dangerous. A jumping dog can knock people over, muddy their clothes, put runners in nylons and scratch the skin.
In order to perfect the proper greeting routine, your dog needs much more practice than that. You can speed up the training process by leaving through the back door and returning through the front door over and over again. When your friends come over, have them do the same. Each time, ask your dog to sit-stay before opening the door. At first his excitement will make it difficult for him to concentrate but after you've repeated this process 10 times, he will calm down and be able to concentrate. Before asking your dog to sit-stay in this distracting and exciting situation, be sure he has a reliable sit-stay in normal, non-stressful situations. And of course you can always just hold the dog in a sit if need be.
However, when we are standing or sitting in a chair and they come bounding over to greet us, jumping up on us and trying to reach our face, we must not bend over and exchange hugs and kisses. If we do we are training and rewarding the puppy for jumping up. Eventually, most of us decide we no longer like our puppy jumping up to say hello - usually when the puppy gets bigger and more rambunctious. What used to be cute is now obnoxious and even dangerous if the puppy is jumping up on children or the elderly.
Homecomings and departures are a prime time for jumping up because puppies want to greet you or stop you from leaving. Turning your back on some of these dogs revs them up even more, so instead, try ignoring the bad behavior. “Ignore” means you make no eye contact, say nothing and stand still like a zombie offering no reaction to silly puppy behavior.
To a dog, space and balance are very important. If you take a step backwards or lean out of a jumping dog’s way, it will continue to jump. To a dog, it is overtaking your space, which only pack leaders are allowed to do. When a dog jumps, step into the dog. Picture a sphere around you and are not going to allow anyone or anything to come into your space. When the dog jumps, step into it sideways with your body, shoulder towards the dog. Don't face the dog head-on (you may not have time to turn so don’t worry about it if this is the case). You are not trying to knock the dog down, although this may happen. Don’t be alarmed if you do knock the dog over. Although you don’t want to abuse the dog by knocking it around, this may actually go a long way toward breaking it of the jumping habit as it will create a negative experience. Dogs are incredibly physical creatures and can withstand a lot of physicality without any harm. The odds of inflicting any serious injury are miniscule. You are simply calmly filling up your space with your body, and in return, setting the dog off-balance, which is an uncomfortable feeling for a dog. Lean slightly forward, not backward. Never lean backward, as you will be giving the dog that space. Casually and calmly, keep filling your space, not allowing room for the dog to come in. Remember, your goal is not to knock the dog down, it's just to retain your space.
Paying attention to a dog only when all four paws are on the floor can work well, if jumping isn’t well entrenched and if everybody who deals with the dog follows the rules. Unfortunately, much of humanity will get busy undermining you. “I don’t mind your puppy jumping up,” they say, while you tear your hair out. Or they get all disciplinarian, maybe kneeing the dog in the chest. That is not only mean but counterproductive, because dogs often respond by trying to appease. Since humans are usually taller than dogs, reaching our muzzles to lick them involves jumping up.