Re: ssh X11forwarding won't work, please help

From: Nils Gorges (noctamid_at_gmx.de)
Date: 08/02/04

  • Next message: kg6rtr: "Change laucher folders in Fedora 2."
    Date: Mon, 02 Aug 2004 22:54:49 +0200
    
    

    Dances With Crows wrote:
    > On Mon, 02 Aug 2004 19:04:34 GMT, Wayne Throop staggered into the Black
    > Sun and said:
    >
    >>>Nils Gorges <noctamid@gmx.de>
    >>>
    >>>>But anyways, you mean you are setting DISPLAY to machine1:0 and
    >>>>launching an X app on machine3, right? And "nothing happens"? The
    >>>>X app doesn't say something like "can't open display" "not
    >>>>authorized" or somesuch? Are there any error indications at all?
    >>>
    >>>yes exactly, no error messages, nowhere.
    >
    >
    > Seems a little strange. But read on...
    >
    >
    >>Then it's probably not an access or networking problem. The bad news
    >>is, that's strange enough that I can't think of anything to suggest.
    >>
    >>>But now ssh -X sets the DISPLAY variable. There are now firewall
    >>>rules and the X Server at machine1 is listening for TCP connections.
    >>>But this isn't even necessary if you use ssh -X or am I wrong?
    >>
    >>Right, ssh -X will bypass both firewalls and even connect to X servers
    >>that are only listening for local processes with no tcp connections.
    >>It does this by the ssh server process operating as a local X process
    >>on the same machine as the X clients, and the ssh client process operating
    >>as a local X process on the same machine as the X server, and both
    >>the X server and the X client being unaware that any traffic is going
    >>to a remote location.
    >
    >
    > FWIW, I had similar problems on Gentoo machines running recent sshd and
    > X releases. Like so:
    > machine1:~$ ssh -X machine2
    > machine2:~$ xeyes &
    > (cannot open display localhost:10.0)
    >
    > ...however,
    > machine1:~$ ssh -Y machine2
    > machine2:~$ xeyes &
    > (works)
    >
    > The -Y option to ssh allows "trusted X11 forwarding", which apparently
    > does something -X doesn't. I don't really have time to research
    > specifics right now, maybe later on tonight, but maybe this'll help you
    > out.
    >

    Thank you very much for your suggestions to both of you.

    This is really a very strange problem. The -Y option is a good idea but
    at machine1 impossible, because the openssh-clients version is too old.

    But now i started a brandnew Knoppix at another machine and here is the
    same problem, doesn't matter if i do ssh -X or ssh -Y the shell freezes
    after starting an X process. So i'm sure this problem is coming from the
    SuSE 9.1 machine3, maybe from the openssh version openssh-3.8p1-33 or
    some SuSE specific issue, i really don't know....

    Nils


  • Next message: kg6rtr: "Change laucher folders in Fedora 2."

    Relevant Pages

    • Re: Explanation of SSH
      ... I am still unclear on how SSH works exactly. ... Client issues SSH command and names server ... "Shopper" says "server sends back its public host and server keys ... Surely there is only one public key it sends ...
      (comp.security.ssh)
    • Re: ssh security question
      ... In my case - the client is a windows client and the ssh is embedded into the windows nx client. ... Is there any reason I can't run ssh-keygen on the server and copy the private key to the client - and the public key to the "authorised" directory? ... sniffer can catch your passwords, and it would make it trivial to log in ...
      (SSH)
    • Re: Publishing a SSH Server
      ... Your unix box cannot reply to SSH request, ... Create a client address set for your unix box (ip address from to are the ... Jim Harrison [ISA SE] ... In that case the server is a SecureNET client but still it doesn't work.... ...
      (microsoft.public.isa.publishing)
    • Re: FC6 VPN
      ... Then you can run any application you would like off the server by simply running it, or if you want to run a whole session, use gnomesession. ... ssh client that supports X forwarding, which is want you want to be looking at. ... SSH allows you to forward any local port to any remote port. ... If you need to connect to, say a windows share, you would forward your local port to the linux server through the ssh tunnel. ...
      (Fedora)
    • Re: Password less login between client & server, server & client
      ... password less logins on both the ssh client and ssh server. ... Login as the user that is making the connection. ...
      (comp.security.ssh)