Use Gedit as Remote File Editor via FTP and SSH (Ubuntu)

Migrating from Windows Vista to Ubuntu 8.04 and have been using it all the way to 9.10, I am now a complete Linux convert. As a web developer, I am frequently required to edit files on remote servers. Without some kind of mechanism to automate the upload process, it becomes laborious as number of files grows. On Windows system I use Notepad++ and its FTP plugin to edit remote files, which work pretty well.

Now I am using Ubuntu, I have to find a similar editor to accomplish this. After some investigation, I found that the bundled text editor gedit is capable of doing remote file editing -- but not without some tricks. In the rest of the article I am going to show you how to do this.

Step 1: Connect to a Remote Server

  • Go to Places->Connect to Server and connect to a remote server. Make sure that you check "Add bookmark" check box.
  • Enter a name for this connection as you will use this to refer to the remote server in gedit.
  • Click "Connect" to proceed.

If you are promoted to enter a password, enter it and choose a password option that fits your need. They are self-explanatory.

Step 2: Editing Remote File

  • Once you are successfully connected to a server, fire up gedit.
  • Go to view and check "Side Panel" or press F9.
  • At bottom of side panel, click "File Browser" tab.
  • On top of the side panel drop down menu, select "Bookmarks".
  • Expand the server you are connecting to.
  • You now can edit remote files as they are local files.

Gedit is a very powerful text editor. In my option it is as feature-rich as Notepad++. Syntax highlighting, bracket matching, automatic indentation are the features I find the most useful to me. I use the following preferences to make gedit the programmer's perfect text editor:

Another tip is that you can narrow the file list in the side panel by applying filter. For example at bottom of the side panel, if you enter "*.php" in the "Match Filename" text box, the side panel now will only show PHP files.

Once again thanks for reading.

23 Comments Use Gedit as Remote File Editor via FTP and SSH (Ubuntu)

  1. Cuong

    I use this mostly to edit websites which do not require super user privilege. If I need to edit system files remotely, I would just SSH and use vi for the job. So as a web developer, I use this method 99% of the time.

  2. Pingback: Gadget Newz

  3. thedoctorzeus

    Thank you! I use Coda on my Mac and was trying to find something simple and similar for Ubuntu

  4. Pingback: engin’in ubuntu rehberi -

  5. Dave

    How can I do this when using gedit on a Mac? I can use gedit and the file browser plugin just fine. But I don't see how to add add a bookmark when I connect to the server.

  6. Evgeni Petrov


    I am working like that but if I do not have activity on the ftp server, Nautilus seems to drop the connection and gedit hangs when I try to save a file. Do you know how I can prevent this? (by automatically closing the file in gedit or by keeping the ftp session alive in Nautilus).

  7. Hamdi

    Thanks a lot!! This is awesome! I was looking some ways to edit files remotely using my favorite editor and IDE with this method I can not just use gedit but any IDE or editor to edit files! Thanks a lot for sharing:)

  8. Pingback: Connect to Amazon EC2 Instance from Nautilus without Using Password File | Code Central

  9. Pingback: » Peer-to-peer Networking Takes Internet Out Of The Equation

  10. Pingback: » Peer-to-peer Networking Takes Internet Out Of The Equation

  11. Lauren

    Thank you so much. I've been trying to do something like this for a long time. I didn't know it was so simple.

  12. Jenny Saberi

    I'm not sure exactly why but this weblog is loading incredibly slow for me. Is anyone else having this problem or is it a problem on my end? I'll check back later and see if the problem still exists.

  13. Pingback: Can't see "places" menu in GEDIT

  14. Pingback: リモートのファイルをローカルで扱う方法

  15. jbi

    Using Ubuntu 14.04. Some things changed: In 'Files' you can directly click on 'connect to server'. The upcoming dialogue no longer has a bookmark-checkmark. However, the connection shows up in Gedits Bookmark-section as long as you don't use the 'disconnect' symbol next to the connection in 'Files'.

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">