V
V
Vladislav Khvostov2016-05-04 12:10:32
linux
Vladislav Khvostov, 2016-05-04 12:10:32

Why can't connect to remote server in sublime text sftp plugin?

The config looks like this -

{
    // 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": "sftp",

    "save_before_upload": true,
    "upload_on_save": false,
    "sync_down_on_open": false,
    "sync_skip_deletes": false,
    "sync_same_age": true,
    "confirm_downloads": false,
    "confirm_sync": true,
    "confirm_overwrite_newer": false,
    
    "host": "host1.domain.ru",
    "user": "khvostov",
    //"password": "password",
    //"port": "22",
    
    "remote_path": "/home/khvostov",
    "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": "C:\\Users\\khvostov\\.ssh\\khvostov23122014.ppk",
    //"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,
}

When trying to connect, it crashes with an error - Connecting to SFTP server "host1.domain.ru" as "khvostov" ........... failure (Connection timeout)
Although it comes through putty.
What could be the problem? Where to look on the host?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Shpelev, 2016-05-04
@ibirist

Try uncommenting "//"port": "22","

P
Peter Zubkov, 2019-03-22
@peterzubkoff

Try to put instead"type": "sftp","type": "ftp",

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question