Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

marked as duplicate by con-f-use, Mitch, RobotHumans, stephenmyall, John S Gruber Aug 27 '12 at 14:50

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

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

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.

share|improve this answer
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 '12 at 9:58
Thanks - the problem was only that I used a small 'x' and not the capital 'X' ! – Erez Sep 12 '12 at 9:24

Not the answer you're looking for? Browse other questions tagged or ask your own question.