X11Forwarding, ssh -X, and /bin/su

From: bad_knee (bl8n8r_at_yahoo.com)
Date: 07/06/04

  • Next message: Darren Dunham: "Re: X11Forwarding, ssh -X, and /bin/su"
    Date: 6 Jul 2004 09:24:36 -0700
    
    

    Hello All,

    Using X11Forwarding on the server, and ssh -X on the client,
    how do I get an x app to display over the wire after su'ing
    to another user?

    Is this a configuration issue, or limitation of the Xsession?

    Thanks for your time!

    ---------------- sample login session ----------------------

    [foobar@clientbox]$ ssh -X server
    Last login: Tue Jul 6 11:12:48 2004 from clientbox
    Sun Microsystems Inc. SunOS 5.9 Generic May 2002
    Sun Microsystems Inc. SunOS 5.9 Generic May 2002

    [foobar@server]$ xclock #this displays fine
    ^C

    [foobar@server]$ su
    Password:
    # /usr/openwin/bin/xclock # this does not display
    X connection to server:11.0 broken (explicit kill or server shutdown).


  • Next message: Darren Dunham: "Re: X11Forwarding, ssh -X, and /bin/su"

    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: Show-stopper Exchange problem
      ... we want the display name to reflect the name of the ... With pretty much any regular old SMTP server, ... client running in smtp mode to set your display name on outbound email, ...
      (microsoft.public.windows.server.sbs)
    • 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)