Sublime Forum

SFTP/FTP takes a long time to connect

#1

Fairly new to Sublime and I am really liking it. I have also added SFTP and am starting to use PROJECTS. Like that as well. I notice then when I am using SFTP to sync files at times it will connect almost immediately but more often than not, I get a run of periods for about 30 seconds, I get an error, then it connects and uploads the file. Having to wait for this every time I want to upload a file is way inefficient. Is there a setting I can make to keep this connection to FTP.

Many thanks,
Houston

0 Likes

#2

Still have not received any feedback from this post. I am still having this issue and it is COSTING me more time that it is saving me because of the long times (up to 30 seconds) between uploads.

Anyone have any ideas if I can change some settings to make this connect faster? here is my json file. I have tried KEEPALIVE value but that seems to have no effect.

[code]{
// The tab key will cycle through the settings when first created
// Visit http://wbond.net/sublime_packages/sftp/settings for help

// sftp, ftp or ftps
"type": "ftp",

"save_before_upload": true,
"upload_on_save": true,
"sync_down_on_open": false,
"sync_skip_deletes": false,
"sync_same_age": true,
"confirm_downloads": false,
"confirm_sync": true,
"confirm_overwrite_newer": false,

"host": "myhost-buthiddenhere",
"user": "notshowinghere",
"password": "zzzzzzzzzzzzz",
//"port": "22",

"remote_path": "/public_html/pristine/wp-content/",
"ignore_regexes": 
    "\\.sublime-(project|workspace)", "sftp-config(-alt\\d?)?\\.json",
    "sftp-settings\\.json", "/venv/", "\\.svn/", "\\.hg/", "\\.git/",
    "\\.bzr", "_darcs", "CVS", "\\.DS_Store", "Thumbs\\.db", "desktop\\.ini"
],
//"file_permissions": "664",
//"dir_permissions": "775",

//"extra_list_connections": 0,

"connect_timeout": 30,
"keepalive": 91120,
//"ftp_passive_mode": true,
//"ftp_obey_passive_host": false,
//"ssh_key_file": "~/.ssh/id_rsa",
//"sftp_flags": "-F", "/path/to/ssh_config"],

//"preserve_modification_times": false,
//"remote_time_offset_in_hours": 0,
//"remote_encoding": "utf-8",
//"remote_locale": "C",
//"allow_config_upload": false,[/code]
0 Likes

#3

The SFTP/FTP plugin isn’t sold or maintained by Sublime HQ, you should contact the plugin developer to get support: wbond.net/sublime_packages/sftp/support

0 Likes

#4

Did you tried on other hosts as well?

Maybe it’s a combination of ftp host, plugins, other installed software (e.g. firewall or antivirus), router etc.

You also didn’t mentioned stuff like OS, ST version or either SFTP plugin is updated or not.

0 Likes