Friday, April 19, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 9317  / 2 Years ago, fri, may 20, 2022, 12:40:52

I'm trying to run a remote firefox session on my vps, to try to download some large files to the server.



I've installed firefox from the apt repo remotely, and I also have firefox installed on my Ubuntu based PC.



After doing:



$ssh -X root@myip
root@myip's password:
X11 forwarding request failed on channel 0
Welcome to Ubuntu 11.10 (GNU/Linux 2.6.32-308.8.2.el5.028stab101.1 x86_64)


I type the following on the server:



$firefox -no-remote
(firefox:6026): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Error: no display specified


So I see two errors: "X11 forwarding request failed on channel 0" and "Error: no display specified". I'm doing something wrong, and would like to find out what.


More From » firefox

 Answers
5

I solved my issues.



Error: "X11 forwarding request failed on channel 0"


and



"Error: no display specified"


Solution:



Add the following to /etc/ssh/ssh_config on the client:



ForwardX11 yes


On the remote, install the following package: xauth



apt-get install xauth

[#31553] Saturday, May 21, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
aclavadoug

Total Points: 317
Total Questions: 103
Total Answers: 125

Location: Bangladesh
Member since Wed, Mar 24, 2021
3 Years ago
;