Red Hat Bugzilla – Bug 64307
openssh X forwarding does not reset $DISPLAY when a remote client logs on
Last modified: 2007-04-18 12:42:23 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (WinNT; U)
Description of problem:
When a remote SSH client logs into the host, the DISPLAY variable should be set to
where display is some number greater than 10.
client_ip_address is not properly set. Instead, $DISPLAY is set to
where localhost is the word "localhost".
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. set ssh on the client to display remote X applications on local server
2. connect to server using ssh
3. echo $DISPLAY
Actual Results: localhost:14.0
(14 may be some other number)
Expected Results: 22.214.171.124:14.0
where 126.96.36.199 is the ip address of the remote machine
and 14 is the "display"
This is relvant if the remote machine is tunneling to the linux server, e.g. through some NAT.
A simple work-around is to let the .cshrc replace localhost with the correct ip address, but this should not be necessary.
I don't understand why it should be a problem? The localhost on the
remote machine is the remote machine and the forwarding to the X
server is done through the ssh encrypted connection.