bash-3.2# xterm
xterm Xt error: Can't open display: %s
bash-3.2# sshd -version
sshd: illegal option -- v
OpenSSH_4.5p1+sftpfilecontrol-v1.1-hpn12v14, OpenSSL 0.9.7l 28 Sep
2006
HP-UX Secure Shell-A.04.50.021, HP-UX Secure Shell version
Using "ssh -Y" to login to the RHEL4 and HPUX computer get the same
result.
Please help so that I can run xclock or xterm on the HPUX computer.
might try
xhost +localhost
ssh RHEL4.ip.here
You may want to verify your hupx login script(s) does not hard code $DISPLAY
I try on the FC6 linux computer
xhost +localhost
I do
bash-3.2# ps -ef |grep sshd
root 20369 1 0 09:51:35 ? 0:00 /opt/ssh/sbin/sshd
...
Then
bash-3.2# kill -HUP 20369
to restart sshd
I ssh to the hpux computer but still get the same error.
> Error: Can't open display:
Try:
echo $DISPLAY
It appears as if the server has X forwarding disabled (since you
explicitly requested X forwarding of the client), but this echo would
help determine if this was so.
- Andrew
# echo $DISPLAY
sh: DISPLAY: Parameter not set.
# export DISPLAY=localhost:10.0
# xclock
X connection to localhost:10.0 broken (explicit kill or server
shutdown).
> # echo $DISPLAY
> sh: DISPLAY: Parameter not set.
Right. Something is preventing the forwarding. Best guess: server
configuration.
> # export DISPLAY=localhost:10.0
That won't work if SSH isn't already listening for the packets to forward.
> # xclock
> X connection to localhost:10.0 broken (explicit kill or server
> shutdown).
- Andrew