FTPS connection with SFTP/FTP Sublime Text plugin

Florin Frătică picture Florin Frătică · Jan 15, 2016 · Viewed 13.9k times · Source

Can I use Sublime SFTP plugin (from here) to make an FTPS connection type?

I was previously working with Notepad++ and the NppFTP plugin but I want to migrate towards Sublime Text however I have problems using the SFTP plugin to connect to my server. Here is my configuration file:

"type": "ftps",
"sync_down_on_open": true,
"sync_same_age": true,
"host": "xxxxxxxxxxxxx.org",
"user": "[email protected]",
"password": "xxxxx",
"port": "21",
"remote_path": "/home/xxxxxxxx/public_html",
"connect_timeout": 30,

I've been trying to change the remote_path multiple times and I can't make it work. I've been getting this error:

Connecting to FTPS server "xxxxxxxxxxxxx.org" as "[email protected]" .... success Validating remote folder "/home/xxxxxxxx/public_html" .. failure (Folder not found) Multiple disconnection errors, giving up

In my Cpanel, the path for all the FTP users is set to /home/cpanel_username/public_html.

I've also tried setting remove_path to "/" and I get another error:

Validating remote folder "/" .... failure (Disconnected)

Any ideas how I can make it work?

Answer

Seonixx picture Seonixx · Jan 15, 2016

If your control panel has already specified the path for FTP connection then your remote path should just be '/'. Otherwise you are likely attempting to access:

/home/xxxxxxxx/public_html/home/xxxxxxxx/public_html

If you've tested '/' and that still doesn't work, possibly attempt connecting with an interactive FTPS client so you can see the root folder structure?