I connect to a Debian server using ssh -i mykey.pem username@ip
. I want to install and run, for example, a browser with a GUI and see the window from my local client, how could I do it? Elinks works, but it's kind of tough to use for navigating the web.
Before flagging this question as duplicate, I have to say that I already tried the instruction in How do I work with GUI tools over a remote server?.
I also tried login with ssh -X -i ...
and ssh -Y -i ...
.
X11Forwarding yes
is enabled in /etc/ssh/sshd_config
(on the remote server).
ForwardX11 yes
is set in ~/.ssh/config
(local client)
echo $DISPLAY output: (after login, none)
export DISPLAY=<myip>:0.0
echo $DISPLAY output: <myip>:0.0
(after the comment above).
When trying to run xfe I get:
FXApp::openDisplay: unable to open display <myip>:0.0
What's wrong? What could I try? Do I have to open any port on my local machine?
echo $DISPLAY
? If it containslocalhost
, you should let it unchanged. Most of the time, activatingX11Forwarding
in config andssh -X ...
should be sufficient. – apaul Apr 10 '15 at 12:52export DISPLAY=...
:) Just log on your server usingssh -X
then typeecho $DISPLAY
just after you logged in. – apaul Apr 10 '15 at 12:57init 5
or modify/etc/inittab
and restart the server. Else, ask the server admin to set the start init level to level 5. – apaul Apr 10 '15 at 18:26