Sublime FTP / SFTP

时间:2016-09-09 08:24:20

标签: ftp sublimetext3 sftp

我正在尝试使用sublime text 3连接到我的cpanel服务器。 服务器已成功添加。并且远程路径也成功验证。 但是当尝试同步远程 - >本地时,它就不会发生。

 {
// 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": "XXXXXX",
"user": "XXXXX",
"password": "XXXXXXX",
"port": "21",

"remote_path": "XXXXXX",
"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": 120,
//"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,
}

在控制台中我终于得到了这个: “通过快速面板选择?否”。

这个过程自行终止了。

1 个答案:

答案 0 :(得分:1)

SFTP有一些选项可以放在你文件夹根目录下的sftp-config.json文件中:

设置这样的值:

    "confirm_downloads":false,
    "confirm_sync":false,
    "confirm_overwrite_newer":true