The only free and comprehensive online etymological dictionary of the Spanish language
eh (Interjection) "hey!"

C. 1732. As similar sounding interjections exist in all word languages, an etymology would be difficult nigh impossible.