Nobody seems to know who wrote the song. Pete Seeger sang it. Andy Griffith sang it(!) Joan Baez put it on her first album, and Bob Dylan sang it on his first album, too.
And of course the most amazing version is from an English band, the Animals. A song about a whorehouse, in 1964, here you go.