gedit "cannot open display" , on remote computer , using ssh - Ubuntu 12.04 [duplicate]

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.


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.