For Kedarnath, you can directly go there and ask people around for a stay.
For Chopta as well, there are homestays there. Hotels are less since there is no network and they are hard to find online. There is this Moksha cafe for bikers just before Chopta.