title: SSH Xforwarding changing user accounts
body: <p>I am trying to make a script to install more or less automatically oracle database as well as some other application of my own. I haven't writen a line yet because I want to make all steps manually first.</p>
  
  <p>So, my environment is the following. I have RHEL 5 with no graphic interface. I am connecting to the server from Windows laptop through SSH as root. I have enabled XForwarding, so when I login with root account I can run xdpyinfo so that I can check XServer configuration.</p>
  
  <p>I need XForwarding because the Oracle DB installation procedure requires an XServer. However, Oracle requires the user oracle to perform the installation. I have already created the oracle user but when changing the user from root to oracle I can no longer run xdpyinfo command so the Oracle installation procedure fails. I get the following error:</p>
  
  <pre><code>Xlib: connection to "localhost:10.0" refused by server
  Xlib: PuTTY X11 proxy: wrong authorisation protocol attempted
  xdpyinfo:  unable to open display "localhost:10.0".
  </code></pre>
  
  <p>I have tried to use xhost to enable my laptop to access my server but I have failed as well to do that.</p>