I have to machines running Ubuntu 18.10
When ssh -X to another computer
ssh -X [email protected]
firefox and google-chrome could be opened at the current machine with firefox
firefox
google-chrome
However, if tried to open the files manager with
xdg-open .
#or
nautilus .
the file manager is launched from the desktop of remote machine rather than the current.
You need the
--new-window
option for Nautilus:First make sure that you have the following options in your
/etc/ssh/sshd_config
, then follow the instructions in the answer above.