Re: problem with X11Forwarding
Mahmood Naderan <[email protected]> Fri, 27 May 2011 23:20:37 -0700 (PDT)
| Newsgroups | gmane.network.openssh.general |
|---|---|
| Message-ID | <[email protected]> |
=0A=0A=A0=0ADear all,=0A=0AThanks for your replies. However I don't know wh= y I didn't received many replies on time. For example today I saw that many= replies were sent 2-3 days days ago and now I am reading them!!=0A=0A=0AI = think the problem is with mailing list. anyway....=0A=0A=0AAfter I turned o= n the sshd in debug mode (-ddd) and connect from a host, I see this:=0A=0A= =0Adebug1: session_input_channel_req: session 0 req x11-req=0Adebug2: bind = port 6010: Cannot assign requested address=0Adebug2: bind port 6011: Cannot= assign requested address=0Adebug2: bind port 6012: Cannot assign requested= address=0Adebug2: bind port 6013: Cannot assign requested address=0A=0AAft= er some search I found this topic=0Ahttp://bugs.debian.org/cgi-bin/bugrepor= t.cgi?bug=3D422327=0A=0AIn the last reply, it is stated that=0A=0A1) Adding= the following to your sshd_config=0AAddressFamily inet=0A2) Restart SSH=0A= =0AI did that exactly and now I can forward X. The problem has been solved.= =0Ahope this help others too=0A=0A=A0=0A=0A// Naderan *Mahmood;=0A=0A=0A=0A= ----- Original Message -----=0AFrom: Darryl Cook <[email protected]>=0ATo= : Mahmood Naderan <[email protected]>=0ACc: =0ASent: Friday, May 27, 201= 1 7:23 PM=0ASubject: Re: problem with X11Forwarding=0A=0Amake sure you enab= le it in ssh_config as well.=A0 that controls your ssh sessions.=0A=0AQuoti= ng Mahmood Naderan:=0A=0A> Hi,=0A> I have enabled X11Forwarding in sshd_con= fig=0A> =0A> mahmood@server:~$ cat /etc/ssh/sshd_config | grep "X11*"=0A> X= 11Forwarding yes=0A> X11DisplayOffset 10=0A> =0A> =0A> However when I conne= ct through "ssh -X server_ip" and run "xclock" I get this error:=0A> =0A> = =A0mahmood@server:~$ xclock=0A> Error: Can't open display:=0A> =0A> =0A> An= y way to fix that?=0A> // Naderan *Mahmood;=0A> =0A=0A=0A=0A--Darryl Cook= =0ASystems Administrator - Computer Science=0AAppalachian State University= =0ABoone, NC 28607=0A828-262-2296=0A=0A------------------------------------= ----------------------------=0AThis message was sent using IMP, the Interne= t Messaging Program.=0A