Xlib: connection to localhost:10.0 refused by server
When you attempt to start a program via your SSH session:
Xlib: connection to “localhost:10.0” refused by server
This error indicates that X-Win32 has rejected the X Client application’s attempt to connect. There are several possible solutions to this problem:
- Your license may be restricting your connection and giving a Cannot Connect to a Host on a Restricted Network error. Click here for more information.
- Check the Use XAuth checkbox on X-Config’s Security tab, then restart X-Win32 and attempt to start your X-Win32 session and your applications again. If this does not fix the problem, proceed to the next solution.
- You may enable SSH applications to be authenticated by the machine that they are coming from (your local machine in this case). If X-Config’s Security tab has any entries in the X-Host list field, then you must explicitly add the host 127.0.0.1 (localhost) in order to allow SSH applications to be automatically authenticated; an empty X-Host list indicates that all hosts will be allowed (including localhost), but adding even a single entry to the list requires that you re-add the localhost entry manually. After making this change, restart X-Win32 and attempt to start your session and your applications again.
See Also:
Cannot Connect to a Host on a Restricted Network
Category:Errors
Category:Sessions -> SSH

Solutions