6

$ 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
mancora
  • 61

2 Answers2

1

X forwarding can be disabled on the server side. If the server is running OpenSSH, X11Fowarding must be explicitly set to yes in /etc/ssh/sshd_config. Unfortunately, if the option isn't set, there's nothing you can do other than running your own server or setting up a port forwarding manually with -R (if you do that, you don't benefit from automatic port allocation or xauth cookie handling).

0

In some posts, I read : "add AddressFamily inet to /etc/ssh/sshd_config", but don't work for my.

My problem was, I don't have lo interface. I solved added to /etc/network/interfaces file this lines

auto lo
iface lo inet loopback
juanpablo
  • 131