Home Download Buy Blog Forum Support

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

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

Postby chaptera on Wed Mar 13, 2013 9:15 pm

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?
chaptera
 
Posts: 6
Joined: Fri Mar 08, 2013 10:58 am

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

Postby fbparis on Thu May 09, 2013 6:06 am

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 :)

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 ?
fbparis
 
Posts: 5
Joined: Tue May 07, 2013 10:30 am


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot] and 21 guests