X11 ssh forwarding not working with imshow.

asked 2019-12-12 07:09:37 -0500

sarslan gravatar image

updated 2019-12-12 07:34:09 -0500

Hello, I have an embedded board and I want to connect the embedded board with ssh -X and play video on the host side. But when I connect and execute mine code via ssh -X, imshow shows video on its touchscreen, not in the host.

Information:

  • OpenCV version is 3.2.0

  • Host machine is ubuntu 16.04 ( I also tried with Ubuntu 18.04 )

I checked that X11Forwarding is YES in /etc/ssh/sshdconfig in embedded board.

Also when I execute echo $DISPLAY in terminal after connecting embedded device, localhost:11.0 is returned.

When I play video with ffplay after connecting embedded board with ssh -X, I can see the video in the host side.

Do you have any idea about this issue ? Thanks for your helps !

edit retag flag offensive close merge delete