Opening pdf over ssh in Mac terminal

pdfssh

As the title says, I do

> ssh user@host.de 
Password:     
> cd documents/ 
> okular example.pdf 
QXcbConnection: Could not connect to display 
Aborted (core dumped)

I connect to an OpenSUSE machine over SSH from a MAC OS.

Best Answer

I understand it wrongly first. Try first

export DISPLAY=:0 

And run your ssh, this might help.