Re: X11 forwarding problems in FreeBSD 6.2 - no xauth data? [SOLVED]
On Thursday 12 July 2007 13:59:54 Andy Greenwood wrote: I had this same problem recently on my server. the sshd_config man page says that the default location for xauth is /usr/X11R6/bin/xauth, but mine was installed as /usr/local/bin/xauth. adding XAuthLocation /usr/local/bin/xauth to my sshd_config and restarting sshd fixed it for me. Interesting, because that was the first thing I did, but it did not solve the problem. What did solve the problem was to add the same line to my /etc/ssh/ssh_config in the Host * section. This only fixed one side of the connection, so I can connect from the FreeBSD host to the Linux hosts. On the Linux hosts, I put XAuthLocation /usr/bin/xauth in their /etc/ssh/ssh_config files but that did not fix the problem from the Linux hosts to FreeBSD. I believe it is because of the way that OpenSSH was compiled on FreeBSD but I am not certain. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: X11 forwarding problems in FreeBSD 6.2 - no xauth data?
Le 10/07/2007 à 14:41:01-0700, Pollywog a écrit On Sunday 08 July 2007 18:03:49 Pollywog wrote: I am having some problems with X11 forwarding. I can do X11 forwarding via ssh between two machines running Linux, but if I try to do this from FreeBSD (KDE) to either of the Linux machines, it only works if I use startx to start KDE on the fbsd machine (a laptop). If I start KDE from kdm, I get errors that go like this when I start the KDE app on the remote host running Linux: [EMAIL PROTECTED]:~$ kate Xlib: connection to localhost:11.0 refused by server Xlib: Invalid MIT-MAGIC-COOKIE-1 key kate: cannot connect to X server localhost:11.0 I just did 'ssh' to one of the Linux hosts and when the connection was made, I got this: Warning: No xauth data; using fake authentication data for X11 forwarding. Does this possibly have something to do with the problem I mentioned in my initial post in this thread? I am going to Google that error and see if I can find something. Check where is the xauth app on the Linux box, and make strings sshd|grep xauth to check if it's the same path. If don't you need to fix this with XAuthLocation in your sshd_config file on the Linux box Regards. -- Albert SHIH Observatoire de Paris Meudon SIO batiment 15 Heure local/Local time: Jeu 12 jul 2007 01:14:53 CEST ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: X11 forwarding problems in FreeBSD 6.2 - no xauth data? [SOLVED]
On Wednesday 11 July 2007 23:17:42 Albert Shih wrote: Le 10/07/2007 à 14:41:01-0700, Pollywog a écrit On Sunday 08 July 2007 18:03:49 Pollywog wrote: I am having some problems with X11 forwarding. I can do X11 forwarding via ssh between two machines running Linux, but if I try to do this from FreeBSD (KDE) to either of the Linux machines, it only works if I use startx to start KDE on the fbsd machine (a laptop). If I start KDE from kdm, I get errors that go like this when I start the KDE app on the remote host running Linux: [EMAIL PROTECTED]:~$ kate Xlib: connection to localhost:11.0 refused by server Xlib: Invalid MIT-MAGIC-COOKIE-1 key kate: cannot connect to X server localhost:11.0 I just did 'ssh' to one of the Linux hosts and when the connection was made, I got this: Warning: No xauth data; using fake authentication data for X11 forwarding. Does this possibly have something to do with the problem I mentioned in my initial post in this thread? I am going to Google that error and see if I can find something. Check where is the xauth app on the Linux box, and make strings sshd|grep xauth to check if it's the same path. If don't you need to fix this with XAuthLocation in your sshd_config file on the Linux box I tried that and it did not solve the problem, but you gave me an idea and it worked. I put 'XAuthLocation pathto_xauth' in my ~/.ssh/config on the FreeBSD box and that fixed the problem for both Linux boxes; I can connect to either of them and run X apps. I believe that if I do the same thing on each of the Linux boxes, I should be able to connect to the FreeBSD host and run X apps. Also, instead of each user having to do the above modification, I will put 'XAuthLocation' in /etc/ssh/ssh_config (instead of sshd_config) globally and that should take care of this issue. thank you for your help ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: X11 forwarding problems in FreeBSD 6.2 - no xauth data?
On Sunday 08 July 2007 18:03:49 Pollywog wrote: I am having some problems with X11 forwarding. I can do X11 forwarding via ssh between two machines running Linux, but if I try to do this from FreeBSD (KDE) to either of the Linux machines, it only works if I use startx to start KDE on the fbsd machine (a laptop). If I start KDE from kdm, I get errors that go like this when I start the KDE app on the remote host running Linux: [EMAIL PROTECTED]:~$ kate Xlib: connection to localhost:11.0 refused by server Xlib: Invalid MIT-MAGIC-COOKIE-1 key kate: cannot connect to X server localhost:11.0 I just did 'ssh' to one of the Linux hosts and when the connection was made, I got this: Warning: No xauth data; using fake authentication data for X11 forwarding. Does this possibly have something to do with the problem I mentioned in my initial post in this thread? I am going to Google that error and see if I can find something. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: X11 forwarding problems in FreeBSD 6.2 - no xauth data?
On Tuesday 10 July 2007 14:41:01 Pollywog wrote: I just did 'ssh' to one of the Linux hosts and when the connection was made, I got this: Warning: No xauth data; using fake authentication data for X11 forwarding. Does this possibly have something to do with the problem I mentioned in my initial post in this thread? I am going to Google that error and see if I can find something. I found out that mcookie generates magic cookies for xauth, but I do not have the mcookie command in FreeBSD, though it exists on my Debian Etch system and is part of the util-linux package. If I can find mcookie or a command that is analogous to it in FreeBSD, I might be able to fix this problem: http://rocketcalc.com/bread.php?key=22 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: X11 forwarding problems in FreeBSD 6.2 - no xauth data?
On Wednesday 11 July 2007, Pollywog wrote: I found out that mcookie generates magic cookies for xauth, but I do not have the mcookie command in FreeBSD, though it exists on my Debian Etch system and is part of the util-linux package. I think you need to generate a new cookie with $ xauth generate :0 . trusted See xauth(1) for more info. HTH, Pieter de Goeje ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: X11 forwarding problems in FreeBSD 6.2 - no xauth data?
On 7/10/07, Pollywog [EMAIL PROTECTED] wrote: On Tuesday 10 July 2007 14:41:01 Pollywog wrote: I just did 'ssh' to one of the Linux hosts and when the connection was made, I got this: Warning: No xauth data; using fake authentication data for X11 forwarding. Does this possibly have something to do with the problem I mentioned in my initial post in this thread? I am going to Google that error and see if I can find something. I found out that mcookie generates magic cookies for xauth, but I do not have the mcookie command in FreeBSD, though it exists on my Debian Etch system and is part of the util-linux package. If I can find mcookie or a command that is analogous to it in FreeBSD, I might be able to fix this problem: http://rocketcalc.com/bread.php?key=22 From what I've read at http://www.linuxcommand.org/man_pages/mcookie1.html: mcookie generates a 128-bit random hexadecimal number for use with the X authority system. Typical usage: xauth add :0 . 'mcookie' Therefore, you should be able to use any random 128-bit hex number instead of mcookie. I'm not sure how secure it would be, but it should work just fine. Cheers Federico ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
X11 forwarding problems in FreeBSD 6.2
I am having some problems with X11 forwarding. I can do X11 forwarding via ssh between two machines running Linux, but if I try to do this from FreeBSD (KDE) to either of the Linux machines, it only works if I use startx to start KDE on the fbsd machine (a laptop). If I start KDE from kdm, I get errors that go like this when I start the KDE app on the remote host running Linux: [EMAIL PROTECTED]:~$ kate Xlib: connection to localhost:11.0 refused by server Xlib: Invalid MIT-MAGIC-COOKIE-1 key kate: cannot connect to X server localhost:11.0 My configurations for ssh are similar on all hosts: sshd_conf has AllowTcpForwarding yes X11DisplayOffset 10 X11UseLocalHost yes XAuthLocation /usr/local/bin/xauth ssh_conf has Host slider HostName 192.168.0.1 ForwardAgent yes ForwardX11 yes ForwardX11Trusted yes PubkeyAuthentication yes Protocol 2 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: X11 forwarding problems in FreeBSD 6.2
On July 8, 2007, Pollywog wrote: I am having some problems with X11 forwarding. I can do X11 forwarding via ssh between two machines running Linux, but if I try to do this from FreeBSD (KDE) to either of the Linux machines, it only works if I use startx to start KDE on the fbsd machine (a laptop). If I start KDE from kdm, I get errors that go like this when I start the KDE app on the remote host running Linux: [EMAIL PROTECTED]:~$ kate Xlib: connection to localhost:11.0 refused by server Xlib: Invalid MIT-MAGIC-COOKIE-1 key kate: cannot connect to X server localhost:11.0 On your FreeBSD machine, try issuing % xhost +local: before you ssh to the Linux machines. Cheers. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]