gedit - text editor for the GNOME Desktop
The remote environment doesn't have access to a "GNOME Desktop". If you're running a "GNOME Desktop" (can run
gedit locally without the message), you can share your local one.
gedit really the right choice for editing remote files?
There are a couple of ways to fix your problem:
A) Use the "
-X" option on your
ssh command, to let remote
gedit access your local "GNOME Desktop".
-X Enables X11 forwarding. This can also be specified on a per-host basis in a
X11 forwarding should be enabled with caution. Users with the ability to bypass
file permissions on the remote host (for the user's X authorization database) can
access the local X11 display through the forwarded connection. An attacker may then
be able to perform activities such as keystroke monitoring.
For this reason, X11 forwarding is subjected to X11 SECURITY extension restrictions
by default. Please refer to the ssh -Y option and the ForwardX11Trusted directive
in ssh_config(5) for more information.
(Debian-specific: X11 forwarding is not subjected to X11 SECURITY extension
restrictions by default, because too many programs currently crash in this mode.
Set the ForwardX11Trusted option to “no” to restore the upstream behaviour. This
may change in future depending on client-side improvements.)
B) Use a different, non-GNOME editor.
There are a plethora of editors available on Ubuntu.
There are too many to list in this response, but we can count them:
walt@bat:~(0)$ apt-cache search editor | grep -w editor | wc -l
walt@bat:~(0)$ apt-cache search editor | wc -l