I had this problem before and it was in part because xauth wasn't working - check that your /etc/ssh/sshd_config is pointing XAuthLocation to the right place and that the program executes.
My notes here might help: https://www.dragonflydigest.com/2018/09/28/21850.html On Tue, Oct 27, 2020 at 1:41 PM Jean Louis <[email protected]> wrote: > Hello, > > I would like to use X from DragonflyBSD server with `ssh -Y my-server' > and I am getting error: > > X11 connection rejected because of wrong authentication > > When I run Emacs for example, I can see Emacs already appearing > including the menus, then the window becomes dark and I see that > error. > > The option X11 forwarding is enabled on server and I can see > .Xauthority file being generated. > > All computers in network regardless of the OS are configured same. If > anybody knows how to get it working, let me know. > > I have installed DragonflyBSD due to problem that we have frequent > power outtages and one laptop need battery replacement. It works well > and stable, and Hammer2 file system gives me good impressions. > > -- > Jean Louis >
