Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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, hbdgaf, Stephen Myall, 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

1 Answer 1

up vote 6 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
1  
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.