My local machine is linux mint, and remote one is centos 7. I try to open gnome-terminal on remote machine with x-forwarding, and its not working.
When I connect to host in interactive mode
$ ssh -Y centos-host
Then in opened session I can run gnome-terminal and x-forwarding working
$ gnome-terminal $ netstat -nltp Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN - tcp 0 0 127.0.0.1:6010 0.0.0.0:* LISTEN -
However when I try yo run
$ ssh -Y centos-host gnome-terminal
The window with gnome terminal opened, but no tunnel for X created.
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
I have an another linux mint remote machine, and not experienced such problem with it. So, I think something wrong with centos 7.