Biting & scratching

How do you teach a 7 month old not to scratch people or bite?