5

Possible Duplicate:
How do I run a graphical application on a remote server when logged in through ssh?

I am getting the following error message when using ssh to log into a remote machine:

gedit: cannot open display

I am using ssh in - Ubuntu 12.04.

2
  • Did you set the DISPLAY properties properly?
    – devav2
    Aug 27, 2012 at 7:53
  • 2
    I'm voting to reopen this post, since the dupe is about forwarding to Windows.
    – muru
    Apr 24, 2015 at 7:12

1 Answer 1

8

You simply need to ssh to your remote machine with ssh -X

ssh -X -l root your-machine-name

Once Logged in you just start gedit or any other program of your choice from command line.

2
  • The performance may not be too great. If you are working over SSH it is recommended to use a CLI editor like nano (easier to use) or vim (more advanced but also more difficult).
    – Lekensteyn
    Aug 27, 2012 at 9:58
  • 1
    Thanks - the problem was only that I used a small 'x' and not the capital 'X' !
    – Erez
    Sep 12, 2012 at 9:24

Not the answer you're looking for? Browse other questions tagged .