Explicitly change the DISPLAY variable in ssh

From: Divakara, Vivek Palyam (UMKC-Student) (vpdvdb_at_umkc.edu)
Date: 03/15/04

  • Next message: Zaphod Beeblebrox: "Error 7: stat/open with SSH"
    Date: Mon, 15 Mar 2004 00:31:58 -0600
    To: <secureshell@securityfocus.com>
    
    

    Hi,

    Can you please xplain me how to explicitly change the DISPLAY variable in ssh.

    The following is specified in "man ssh":
                 
                 "The user should
                 normally not set DISPLAY explicitly, as that will render the X11
                 connection insecure (and will require the user to manually copy
                 any required authorization cookies)."

    I have a program which starts in the remote machine thru ssh & connects to my Xserver from default ssh port localhost:10 & this program now listens for any new clients on some other port say unix:11 & forwards the clients to localhost:10. For this to work i need to change DISPLAY variable of the ssh terminal to unix:11. once i do this & start a Xclient i get an error message:

     " X11 connection rejected because of wrong authentication".

    Can someone let me know how to change the DISPLAY variable of the ssh terminal

    Thanks
    Vivek


  • Next message: Zaphod Beeblebrox: "Error 7: stat/open with SSH"

    Relevant Pages

    • Re: sshd handing all authentication to shell
      ... >I would like to use SSH for transport only into an embedded device. ... >login/password authentication but since it is using SSH for transport, ... You don't state what SSH server you're planning to use, ... I believe that in principle a client should be able to request ...
      (comp.security.ssh)
    • Re: ssh
      ... ssh can use DSA or RSA keys for authentication. ... public key can decrypt. ... is significantly smaller than that for ssh RSA/DSA keypairs. ... host to capture the key (either an unprotected key or a capture of your ...
      (Vuln-Dev)
    • SSH 2.4.0/3.0.1 usernames guessable ?
      ... As we were playing a bit with some SSH versions we ... warning: Authentication failed. ... scp: warning: ssh2 client failed to authenticate. ...
      (Vuln-Dev)
    • Authentication (was Re: Great SWT Program)
      ... You know that ssh reads the ... authentication mechanisms are challenge/response-based and handle the ... what methods your server allows using 'ssh -v ... debug1: Authentications that can continue: publickey,password ...
      (comp.lang.java.programmer)
    • Re: disabling root ssh, and ssh password authentification?
      ... > The question I have is, what good would disabling root ssh access do? ... Security protocols define authentication factors: ...
      (comp.os.linux.misc)