Ssh – firefox process dies after ssh log out on remote machine

disownremotesshx11

I need to run firefox on a remote host via ssh and keep process running even after ssh logout.

I already have tried these ways:

nohup firefox &
screen
disown -h

But it seems these work only for the process without an X11 display, because these work fine with my scripts and I can keep my scripts running even after ssh log out. But I can't do the same for firefox.

How can I make this work for firefox too?

Best Answer

Basically it looks like you need a flexible (just an app, not a whole desktop) X session through ssh that you can resume at any time.

I use NX for that. I've also used during some time x2go, but I always come back to NX.

Some links worth to look at:

And a couple of tutorials about NX:

Related Question