Ubuntu – ssh -X to open a file manager


I have to machines running Ubuntu 18.10

When ssh -X to another computer

  ssh -X assistant@pc.local

firefox and google-chrome could be opened at the current machine with firefox


However, if tried to open the files manager with

xdg-open .
nautilus .

the file manager is launched from the desktop of remote machine rather than the current.

Best Answer

  • You need the --new-window option for Nautilus:

    ssh -X remote-machine nautilus --new-window