It was written 香具師 (literally, perfume practitioner) with Chinese characters and also 野士 (mountain priest), 野師 (wild practitioner), 弥四 (part of man's name 'Yashiro'), however all of them are pronounced as 'yashi.'
野士・野師・弥四とも表記し、すべて「やし」と読む。