Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-09-2010, 07:52 PM   #1
LQ Newbie
Registered: Oct 2010
Posts: 2

Rep: Reputation: 0
Can't edit files while using ssh to remotely access linux server from a Windows comp

I can ssh to the server but it wont allow me edit files, even though I have basic text editors like gedit and notepad installed on my windows computer. Anyone have an idea what the problem is? (I get an error message like this-(gedit:23978): Gtk-WARNING **: cannot open display Thanks in any case
Old 10-09-2010, 08:55 PM   #2
Senior Member
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Stretch (Fluxbox WM)
Posts: 1,389
Blog Entries: 52

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
When you ssh to a remote server, you are actually running the editor from the remote server. Because you do not have an X-windows (the GUI) connection, the editor cannot put up its graphical user interface, which is why you get a warning.

The easiest alternative would be a non-GUI editor such as nano. Many users prefer vi or emacs, but there is a learning curve if you have not used them before.

In order to run a GUI program on the remote computer, you would need an X server on your own computer, and will require additional flags to ssh (to tell it to forward the X connection). There are X servers for Windows such as Xming.

Last edited by neonsignal; 10-09-2010 at 08:56 PM.
Old 10-10-2010, 01:07 PM   #3
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,236

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914
i dunno' about windows -> linux but with linux -> linux the command should be:
ssh -X <server>.com
please tell us what ssh client you are using ?

man ssh for more info.
Old 10-11-2010, 02:48 PM   #4
LQ Newbie
Registered: Oct 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks neonsignal. I downloaded Xming and Nano, and both are working as good solutions. Thanks Again!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
connect and access files remotely to a samba server over the internet tsh3po Linux - Newbie 7 06-01-2010 07:40 AM
Is it possible to access remotely Linux from windows xp. saqibsh Linux - Software 4 03-31-2010 05:37 PM
[SOLVED] How to access windows files & folders from Enterprise Linux Server hnpat Linux - Newbie 4 09-23-2009 06:56 AM
[SOLVED] how to share files in linux server & access them from windows xp machine m.anand80 Linux - Newbie 5 08-20-2009 06:12 AM
Access Denied when I try to login remotely to my SSH server running on Cygwin. andrew_cz General 0 05-02-2006 10:46 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration