Catalysis of the hydrolysis of the 6-sulfate groups of the N-acetyl-D-galactosamine 6-sulfate units of chondroitin sulfate and of the D-galactose 6-sulfate units of keratan sulfate.
N-acetyl-D-galactosamine-6-sulfate 6-sulfohydrolase activity