Code: Select all
_X11TransSocketOpen: socket() failed for tcp
_X11TransSocketOpenCOTSClient: Unable to open socket for tcp
_X11TransOpen: transport open failed for tcp/localhost:10
Error: Can't open display: localhost:10.0
Code: Select all
_X11TransSocketOpen: socket() failed for tcp
_X11TransSocketOpenCOTSClient: Unable to open socket for tcp
_X11TransOpen: transport open failed for tcp/localhost:10
Error: Can't open display: localhost:10.0

This should be correct - on the remote system, ssh sets the display number to 10.fimblo wrote:1) is the display number correct? (in your error
message it was 10)
Code: Select all
netstat --listening --inet --tcp
Code: Select all
tcp 0 0 *:6000 *:* LISTEN


Interesting. I tested this out, and you're correct. Apparently the ssh client forwards the TCP connection on the remote host to the Unix domain (non-TCP) socket on the local host. The ssh/sshd manual page does not make it clear that this happens, though.sschlueter wrote:I have read this several times already but the listening port is not needed.grant.mcdorman wrote:If you don't see this, then the X server was started with -nolisten tcp, and any amount of fiddling with ssh options won't get it to work.
This doesn't appear to be necessary, from my tests (one can either set this option or use the command-line -X option). X11Forwarding in sshd_config is indeed necessary, though.fimblo wrote:2) for sshd to forward X11, you need ForwardAgent yes set in your local /etc/ssh/ssh_config
Code: Select all
X11DisplayOffset
Specifies the first display number available for sshd 's X11 forwarding. This prevents sshd from interfering with real X11 servers. The default is 10.Code: Select all
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:32769 *:* LISTEN
tcp 0 0 *:723 *:* LISTEN
tcp 0 0 *:ssh *:* LISTEN
tcp 0 0 localhost:631 *:* LISTEN
tcp 0 0 localhost:6010 *:* LISTEN
Code: Select all
inet/localhost:10
Perhaps ssh won't do it, but since the remote login via ssh is always a full login you can try this:bhar99328 wrote:That fixed it. Do you know how I could set ssh to do that for me?
Thanks much.
Code: Select all
expr "$DISPLAY" : "localhost:" >/dev/null && DISPLAY="inet/$DISPLAY"
Believe me, I didn't touch any option regarding ipv6 on my system(s), not even for fun.grant.mcdorman wrote:(Presumably the reason I didn't see this, by the way, is that I don't have IPV6 code turned on. In most cases, this code isn't very useful, especially in North America, where I am, as the ISPs rarely support it. Presumably you have a need for it, though.)

It must be turned on in your kernel, though. The option is Networking Options, The IPv6 protocol (EXPERIMENTAL). Go to /usr/src/linux and check it via make menuconfig or make xconfig. I just checked, and I do have it off. OTOH, if you do have it off, things are seriously weird.alinv wrote:Believe me, I didn't touch any option regarding ipv6 on my system(s), not even for fun.grant.mcdorman wrote:(Presumably the reason I didn't see this, by the way, is that I don't have IPV6 code turned on. In most cases, this code isn't very useful, especially in North America, where I am, as the ISPs rarely support it. Presumably you have a need for it, though.)
I will try your solution first thing in the morning
Thanks,
Alin
Well then, they are weird:grant.mcdorman wrote:OTOH, if you do have it off, things are seriously weird.
Code: Select all
# CONFIG_IPV6 is not setWorks like a charm!grant.mcdorman wrote:In it put:as a single line.Code: Select all
expr "$DISPLAY" : "localhost:" >/dev/null && DISPLAY="inet/$DISPLAY"
That will detect DISPLAY="localhost:something" when you login, and change it appropriately.


He did do this. The problem is that, for some reason, 'locahost:10' does not work (it appears that the X clients are using the wrong transport - ipv6 or some other odd variation instead of standard ipv4), but 'inet/localhost:10' does. Since ssh sets the display to 'localhost:10', he needs to prepend 'inet/'.duffolonious wrote:Ok guys, don't force a change in the display variable.
Instead change your "sshd_config" on the remote machine.
#X11Forwarding no
#X11DisplayOffset 10
#X11UseLocalhost yes
uncomment the lines and change X11Forwarding to yes
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
That should work, if it doesn't and you login to the remote machine with the -X option then feel free to complain.
Correct; the remote program runs entirely on the remote system, and only sends its graphics (UI) to the local system.duffolonious wrote:Now I just need to find out why MozillaFirebird is killing on machine and not the other.
Just to make sure I get this. The Xclient on the remote machine sends it's info across the ssh connection to the local machines Xserver, and displays the remote program. Therefore I don't need the remote program on the local system?
Code: Select all
env DISPLAY="localhost:10.0" xclock