Students in Boston’s public schools will shift to remote learning due to the rising Covid-19 infection rate in the city that was ravaged by the pandemic in the spring.