How to run deepstream 5 from ssh

Hi guys,
I want to run the one sample codes of deepstream-5 on xavier, but when I run the deepstream-app -c config file, I get this error:

No EGL Display
nvbufsurftransform: Could not get EGL display connection

In the desktop environment, It’s OK and work, but I want to run the deepstream remotely.


export DISPLAY=:0
export DISPLAY=:1

export DISPLAY=:1 is work.