I don't quite understand what you are trying to do here. Are you trying to run apps on the N900 and display on a PC, or vice versa? ssh can cope with all this stuff on its own, without having to install xauth. It could be that your use of sudo is losing the display authorisation. Why are you using sudo in this way?
set display 192.168.0.x 0
export display