Cannot Launch Firefox using SSH Putty
Description
I am trying to to setup a headless web server and I need the firefox browser to do some configurations. I am currently using windows Putty to SSH to my VM running on RHEL 8. I believe I have installed the correct packages needed to install firefox and enabled both X11 Forwarding on both the Server and Client. Below are the details to what I've done so far.
Error Problem:
In Short, firefox does not launch.
$ export DISPLAY=:0.0
$ xhost +
access control disabled, clients can connect from any host
$ firefox &
[1] 151163
I have done the following:
On Server Side
- Installed firefox and prerequisite packages (on server)
- Installed xauth & xorg-x11*
- Configured /etc/ssh/ssh_config (FowardX11 yes, FowardX11Trusted yes)
- Configured /etc/ssh/sshd_config (X11Forwarding yes, X11DisplayOffSet 10, X11UseLocalhost yes, AllowTcpForwarding yes)
On Windows Client Side
- Installed and configured X Server(XMing)
- SSH with X Forwarding via Putty (With X11Forwarding enabled, X Display location: localhost:0.0)
I have enabled X11Forwarding on both Server and Client. Can someone tell me why am I still facing this error?
export DISPLAY=:0.0
This shouldn't be necessary. If X is being forwarded, the SSH server will set DISPLAY to the correct value for you. On top of that, ":0.0" isn't likely to be the correct value for your purpose. Try running ssh with the "-vv" flag to print debugging output, then edit your question to include the debugging output.&
backgrounds the firefox process? That means you won't get the GUI to open over X11 forwarding (working or not), it will run in the background and be inaccessible for normal usage.