FTPS connection with SFTP/FTP Sublime Text plugin

15,260

Solution 1

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?

Solution 2

I've been having this error today, totally out of the blue because I use Sublime's SFTP package daily.

I closed Sublime and reopened it... problem solved.

Solution 3

I encountered this error message when I had the wrong setting on the ftp_passive_mode. Just commenting it solved my problem.

commented ftp_passive_mode setting picture

Other (common) situations & errors that I've encountered were:

  • wrong server type: server type setting picture which gave the following error: wrong server type setting error picture
  • no port setting: no port setting picture which (weirdly) gave the following error: no port setting error picture
  • wrong port setting: wrong port setting picture which gave the following error: wrong port setting error picture

I really hope these basic list helps people.

Solution 4

Changed type to ftp even though it really SHOULD be ftps and it worked.

Share:
15,260
Florin Frătică
Author by

Florin Frătică

Updated on June 14, 2022

Comments

  • Florin Frătică
    Florin Frătică about 2 years

    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?

  • Matthew
    Matthew over 7 years
    This just saved my day. For those having the same problem try the answer above and then just try to browse the remote. If it was successful you will be able to browse your files in the sublime popup window.
  • Beaniie
    Beaniie over 6 years
    YOU ARE A LEGEND... + 1
  • blackandorangecat
    blackandorangecat over 5 years
    I changed the type to ftp and it worked. Changed back to ftps and it also worked.
  • Cobertos
    Cobertos about 3 years
    Did not work for me. I have explicit FTPS set on the server and it failed with "Server requires FTPS connection"