Whilst an asteroid is certainly big enough for a human to live on, it doesn't have the same defense mechanisms that Earth does. You see, the Earth is surrounded by a layer of different gases, which make up it's atmosphere. Nitrogen, oxygen, argon and carbon dioxide all combine together in our atmosphere, which helps to protect us from other objects like asteroids. So, it would be difficult to live on an asteroid without this defense!