$ xterm works on the client computer
In the client I have :
$ echo $DISPLAY
:0
in the config file in the server /etc/ssh/sshd_config:
X11Forwarding yes
X11DisplayOffset 10
trying to connect to the remote server:
$ssh -X user@host
@server01:/etc/ssh$ xterm &
[1] 4237
@server01:/etc/ssh$ xterm Xt error: Can't open display:
xterm: DISPLAY is not set
^C
[1]+ Exit 1 xterm
-Y
instead of-X
?