Sublime Forum

SFTP plugin - howto not save sftp-config file inside folder?

#1

When you have set up a project with folders and set an SFTP mapping to upload files, the sftp-config file gets saved inside the project folder.
I know it’s not uploaded but it’s not ideal to have it inside the project folder itself.

Is there a way to set this up differently so that you don’t have config files inside the working folder?

0 Likes

#2

Hi,

I’ve found a trick to exclude sftp-config.json from the folder you want to map with remote server. I needed that because I didn’t want my server credentials to be synced in clear text on SugarSync (or Dropbox) and there is no way to exclude a single file from syncing with SugarSync.

So here is how I’m doing:

  1. Create a folder anywhere which won’t be synced
  2. Move sftp-config.json into that folder
  3. Create a symbolic link to sftp-config.json in my working folder (tested on MacOsX)

SugarSync ignores symbolic links but it seems it’s not a problem for Sublime SFTP so that’s perfect :smile:

Now it would be great to modify Sublime SFTP so it can do it automatically ; maybe adding an option “sftp-config-folder” in SFTP.sublime-settings, anyone ?

0 Likes