title: Running an opencv based python script on a remote server with ssh forwarding from my macbook gives me an error
body: <p>I am trying to run a python script on a remote server, which includes displaying images. The image does not get displayed and I get an error <code>Gtk-WARNING **: cannot open display:</code></p>
  
  <p>I have checked posts where they suggest editing the flags in <code>sshd_config</code> and also setting the <code>DISPLAY</code> variable manually. But, none of that seems to be working for me.</p>
  
  <pre><code>X11Forwarding yes
  X11DisplayOffset 10
  X11UseLocalhost no
  XAuthLocation /usr/X11/bin/xauth
  </code></pre>
  
  <p>Running <code>xclock</code> or <code>xeyes</code> also gives me errors.</p>
  
  <p>Edit: I used ssh -X and ssh -Y to ssh into the server, neither worked</p>