“Farming appeals to me, and probably to other people, because it’s simple and straightforward work outdoors with literal fruits from your labor,” Mr. Bobman said. “It doesn’t feel like you’re a part of an oppressive institution.”

For decades, the number of farmers has been shrinking as a share of the population, and agriculture has often been seen as a backbreaking profession with little prestige. But the last Agricultural Census in 2007 showed a 4 percent increase in the number of farms, the first increase since 1920, and some college graduates are joining in the return to the land.

Jordan Schmidt, a crew manager here at Hearty Roots, studied environmental science at Wesleyan. Ms. Schmidt, 27, did not have so much as a garden growing up, but in college, she said, she worked at a student-run farm and fell in love with agriculture. So she gave up on research science and moved onto a farm in Pennsylvania after graduating. This is her third season at Hearty Roots.

Hearty Roots, about 100 miles north of New York City, spans 70 acres with a clear view of the Catskill Mountains to the west. At the height of the harvest this year, the farm produced 8,000 pounds of vegetables a week — including peppers, beets and kale — and employed 10 workers. None of them came from farming backgrounds and most had heard about the job through word of mouth.

Ms. Schmidt recalled that her first time working on a farm, she loaded thousands of onions into a greenhouse to dry out, which was supposed to improve their flavor. But the roof was left uncovered, and when she returned the next day, many of the onions had been spoiled by the sun.