When I try xclock I get- Error: Can't open display. in sshd_config I set X11UseLocalHost "no" and I log in with ssh -X. X servers on most modern system have listening on IP addresses disabled by default (as it is inherently insecure), and only use the local. Since you have X11DisplayOffset set to 10 (the default value), ssh will use the first available display starting at If you see a value.
Freebsd ssh error can t open display - abstractgrep sshd` didn't return any relevant entries. Looking at the strings of sshd, I noticed that it had a hard-coded path pointing to "/usr/X11/bin/xauth", so I made a hard link from "/usr/local/bin/xauth" to "/usr/X11/bin/xauth". Now, sshd can find xauth, and DISPLAY is properly set to "localhost". sockstat shows: USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root sshd 7 tcp4 *:*" However, running `xeyes` reports the error "Error: Can't open display: localhost". Right now, `ssh -Xvvv user at host` shows: debug2: x11_get_proto: /usr/bin/xauth -f /tmp/ssh-dd77LaQ9BG/xauthfile generate unix MIT-MAGIC-COOKIE-1 untrusted timeout 2>/dev/null Warning: untrusted X11 forwarding setup failed: xauth key data not generated Warning: No xauth data; using fake authentication data for X11 forwarding. debug1: Requesting X11 forwarding with authentication spoofing. debug2: channel 0: request xreq confirm 0 On the local end, I have tried connecting with PuTTY, ssh through Cygwin, and ssh on a Ubuntu system. I have also tried ssh -Y as well. Regards, sk89q
More information about the freebsd-questions mailing list