Opening firefox in a centos linux terminal

view story

http://stackoverflow.com – I am trying to run Firefox from the terminal on a server using a centos operating system. Whenever I type in the command: ssh - X hostname firefox I can get firefox to successfully open, but I can not ssh on to the server remotely and open firefox. I get the following error message after specifying export DISPLAY=:0 and typing in "firefox" No protocol specified No protocol specified Error: cannot open display: :0 There are many forums for this problem online and the only useful suggestions I have tried: export XAUTHORITY=/home/<user>/.Xauthority Although I need firefox to (HowTos)