1

I currently have one service running on localhost on a Centos machine. I cannot change it.

I would like to open Firefox on my local machine in order to open that URL, as the Centos machine does not have user interface and my local machine does.

I tried using this but it didn't work:

ssh -Y <user>@<centos_machine> firefox --no-remote

Error: GDK_BACKEND does not match available displays

Firefox is installed on the Centos machine.

2
  • 1
    What exactly didn't work? Firefox didn't start? There is no Firefox installed on the CentOS machine? Firefox did start, but you couldn't use 'localhost'? Anything else? Note that when you use ssh with X forwarding, Firefox will run on the remote (CentOS) machine, but you'll see the window on your local machine - that's what X forwarding does.
    – dirkt
    Commented May 3, 2018 at 10:39
  • @dirkt Firefox is installed on the Centos machine, but it does not start.
    – djuarez
    Commented May 3, 2018 at 11:52

1 Answer 1

5
ssh -L 8080:localhost:80 centos_machine

launch your browser on http://localhost:8080

it's pointing to centos_machine:80

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .