SFTP无法保持连接的活动状态

SFTP无法保持连接的活动状态,sftp,sublimetext,connection-timeout,Sftp,Sublimetext,Connection Timeout,我正在寻找一种防止ftp连接超时的方法,如果可能的话,在我处理项目时将其打开数小时 在Sublime Text 2中,我使用的是这个软件包“SFTP” 当我去上传一个文件到我的服务器时,通常需要30秒来重新连接,然后它就会上传文件。如果我立即再次保存该文件,它是即时的。我已经设置了保持连接活动的选项,但它们似乎不起作用 “连接超时”:1800, “keepalive”:1800, { // The tab key will cycle through the settings when

我正在寻找一种防止ftp连接超时的方法,如果可能的话,在我处理项目时将其打开数小时

在Sublime Text 2中,我使用的是这个软件包“SFTP”

当我去上传一个文件到我的服务器时,通常需要30秒来重新连接,然后它就会上传文件。如果我立即再次保存该文件,它是即时的。我已经设置了保持连接活动的选项,但它们似乎不起作用

“连接超时”:1800,
“keepalive”:1800,

{
    // 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": "example.com",
    "user": "username",
    "password": "password",
    "remote_path": "/public_html/example/wp-content/plugins/",

    "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": 1800,
    "keepalive": 1800,
    //"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,
}

我看到了你的评论,我之前的回答完全不相关。您必须联系siteground.com的支持人员了解他们的sftp超时设置,我怀疑这超出了您的控制范围,他们不太可能调整它…好的,谢谢。您再次提到的哪些属性需要更改,或者您是说这些属性也不相关?
{
    // 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": "example.com",
    "user": "username",
    "password": "password",
    "remote_path": "/public_html/example/wp-content/plugins/",

    "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": 1800,
    "keepalive": 1800,
    //"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,
}