Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Secure-Shell
[Top] [All Lists]

Re: X11 forwarding and DISPLAY variable

Subject: Re: X11 forwarding and DISPLAY variable
Date: Fri, 14 Oct 2005 16:45:13 +0200
On Thursday 13 October 2005 21.28, Bill Feero wrote:
I had to put:   ForwardX11Trusted yes
into the ssh config file (/etc/ssh/ssh_config).

An alternative is to use the command line option -Y (like -X but with trusted 
xfwd). Simple stuff (like xclock) will work with -X but other things like for 
example mozilla will require -Y

/Peter

I did it on a per-host basis, hosts that I trusted. This seems to be a
security change made to newer versions of openSSH.


Here is a snippet of my ssh_config:
Host oldserver
   ForwardX11 yes
   ForwardX11Trusted yes


Bill

On Wednesday 12 October 2005 5:49 pm, Bernd Prager wrote:
I'm trying to connect a Linux remote X client to my local X server on my
PC in a local network behind a router/firewall.

The configuration is:

(remote xclient) -> (remote ssh server) -> (local router with NAT) ->
(local ssh telnet with X11 forwarding) -> (local x server)

The linux box is running ssh version 3.8.1p1-8.sarge.4 and the ssh
telnet client is VanDyke SecureCRT version 5.0.0.

My local X server is running and accepts local X clients.
I open a SSH telnet session to the remote server (X11 forwarding from
the ssh telnet client is enabled).
When I try to open a remote X client it says:
"Error: Can't open display:"

I read somewhere that the SSH server will set the DISPLAY variable for
me. How do I get that working? Is that even possible?

Thanks for help,
-- Bernd


P.S.: I have "X11Forwarding yes" in "/etc/ssh/sshd_config" set.

-- 
------------------------------------------------------------
  Peter KjellstrÃm               |
  National Supercomputer Centre  |
  Sweden                         | http://www.nsc.liu.se

Attachment: pgphYnuF0UWZk.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>