I recently changed the knock sensor on my wife's 1995 Legacy Outback with the 2.2 liter EJ22 engine and took some notes and pictures of the process. I believe the sensor is in the same location as the 2.5 liter.
http://www.lovehorsepower.com/SubaruDocs/subaru_page.htm