Ubuntu – ssh -X to open a file manager

sshx11-forwarding

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

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.

Best Answer

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

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