LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 10-09-2010, 06:52 PM   #1
soundersfc
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, 07:55 PM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Wheezy (Fluxbox WM)
Posts: 1,363
Blog Entries: 52

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
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 07:56 PM.
 
Old 10-10-2010, 12:07 PM   #3
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 3,958

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

man ssh for more info.
 
Old 10-11-2010, 01:48 PM   #4
soundersfc
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!
 
  


Reply


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 06:40 AM
Is it possible to access remotely Linux from windows xp. saqibsh Linux - Software 4 03-31-2010 04:37 PM
[SOLVED] How to access windows files & folders from Enterprise Linux Server hnpat Linux - Newbie 4 09-23-2009 05:56 AM
[SOLVED] how to share files in linux server & access them from windows xp machine m.anand80 Linux - Newbie 5 08-20-2009 05:12 AM
Access Denied when I try to login remotely to my SSH server running on Cygwin. andrew_cz General 0 05-02-2006 09:46 AM


All times are GMT -5. The time now is 03:16 PM.

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