Thanks for the detailed explanation (in case this happens again). As I already wrote, I chose the "easy ???" way and re-installed and everything is back to normal.
On Tue, 6 Feb 2018 20:06:14 +0200 Lior Okman <l...@okman.name> wrote: > Hi, > > Sorry, I just saw the thread right now. > > If it happens again: > > Your $HOME/.Xauthority file contains the authentication key that is > used to authenticate your X sessions. This file is manipulated with > the xauth command. When you ssh with the -X switch, it is supposed to > add an entry to your .Xauthority file to allow you to connect to the > X server - but it sometimes doesn't work. > > Best fix is to use xauth to delete the bad key and enter the correct > one - use xauth on your local host to find the correct value, and > then use xauth on the remote host to delete the bad key and add the > correct key. > > Easier fix is to simply delete the .Xauthority file on the remote > host and try to login again and let ssh recreate it. > > You could also copy the .Xauthority file from your main host to the > pi. > > :-) Or you could format the machine and hope for the best :-) > > -- > Regards, > Lior > > On Tue, Feb 6, 2018 at 11:35 AM, Shlomo Solomon > <shlomo.solo...@gmail.com> wrote: > > > I finally gave up and did a re-installed of Raspbian and everything > > is back to normal. Since I do regular backups of /home and /etc, I > > got everything back to normal with no major problems. > > > > > > On Tue, 6 Feb 2018 10:20:12 +0100 > > Tzafrir Cohen <tzaf...@cohens.org.il> wrote: > > > > > On Sun, Feb 04, 2018 at 11:54:01AM +0200, Shlomo Solomon wrote: > > > > I really don't know how I screwed this up, but I've been > > > > "playing" with this for hours with no success. > > > > > > > > I have a raspberry PI file server. I rarely use the GUI and > > > > when I do it's usually over VNC (I use KRDC) or with ssh -X. > > > > > > > > As of today: > > > > 1 - KRDC won't connect > > > > > > > > 2 - ssh -X pi@pi (pi is defined in /etc/hosts) gives only a > > > > console login and says: > > > > X11 connection rejected because of wrong authentication. > > > > > > > > > > What are the values of DISPLAY and XAUTHORITY when you connect via > > > ssh? > > > > > > > 3 - I connected a monitor directly to the PI and it will not > > > > accept the pi password when I try to login to X11 - but DOES > > > > accept the root password. So X11 is OK, but only for root - not > > > > the regular pi user. > > > > > > I must be missing something, but: how are the two related? In (2) > > > you try to authorize X11 programs on the pi to connect to an X > > > server running on your PC. > > > > > > In (3) you run an X server on the pi (and X11 clients running on > > > the pi that should connect to it). > > > > > > > > > > > -- > > Shlomo Solomon > > http://the-solomons.net > > Claws Mail 3.11.1 - KDE 4.14.30 - Dolphin 4.14.3 - LINUX Mageia 5 > > > > _______________________________________________ > > Linux-il mailing list > > Linux-il@cs.huji.ac.il > > http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il > > -- Shlomo Solomon http://the-solomons.net Claws Mail 3.11.1 - KDE 4.14.30 - Dolphin 4.14.3 - LINUX Mageia 5 _______________________________________________ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il