An Indiana man has pleaded guilty to raping a teenager in a Queensbury motel, and will serve six years in prison.