I am trying to execute a python file coded for Graphical user Interface using pyqt modules using ssh. It gives me a message 
X11 connection rejected because of wrong authentication.
QXcbConnection: Could not connect to display localhost:10.0
I tried several ways checking for the x11 forwarding etc etc.Nothing seems to work. Please help me out.
Thanks in advance.
ssh by default does not forward the X session, so your program on will try to open its window on the remote host (where it will be rejected in most cases because the X server on the remote host is either not running at all (e. g. if it is a headless server) or because it isn't configured to display the stuff.  And even if it would accept the window of your application, it would display it on the remote host's display, not on your local one.  So that wouldn't be what you want either.
Try ssh -X … when starting your application via ssh.  This will tell ssh to forward the X session so that your application on the remote host will send its window back to the X server running on your local machine which it will be accepted and displayed.
Executing pyqt files through ssh