Where developers come to connect, share, build and be inspired.


Using Sublime Text 2 and SFTP to work on remote files.


Coming from a .NET MVC3 background, this concept of working with plain files was new to me. I was used to having to publish files, and copying the compiled binaries over to my host's folders.

Since I'm working with PHP exclusively in my new job, I had to find a good way for me to work and not waste time doing things over and over again.

Here's what I do when working with remote files.

  1. Install Sublime Text 2.
  2. Install Sublime Package Control.
  3. Install Sublime SFTP.


Once that's setup, you want to create a folder somewhere on your machine and open it using Sublime Text 2.

Right click the folder and select SFTP -> Map To Remote and a file will be generated for you.

This is the configuration files Sublime SFTP uses to read FTP credentials and host information.

Type in your credentials and select SFTP -> Sync Remote to Local. This will pull all files and data to your local folder.

Now when you modify a file, just right click it and SFTP -> Sync Local to Remote and it'll push changes automatically to your FTP folder.

Quick and painless and very easy!

If you want you can hotkey the process and make it even faster!


Add a comment