无法通过Sublime 3软件包SFTP连接到SFTP服务器

问题描述 投票:1回答:2

我有一个要与Sublime Text 3中的SFTP包连接的SFTP服务器。

由于某种原因,每次尝试连接时都会超时。 SSH密钥设置正确,我也可以使用WinSCP,FileZilla和PuTTy连接到服务器。

这里是错误:

Connecting to SFTP server "pirpi.pil.dk" as "devafdoede" ....... failure (Connection timeout)

这只是Sublime 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": "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": "pirpi.pil.dk",
"user": "devafdoede",
//"password": "password",
//"port": "22",

"remote_path": "/mypath",
"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,
}
package sublimetext3 sftp
2个回答
4
投票

如果您在Windows上,则需要添加特定的ssh_key_file

从SFTP常见问题解答:

对于Windows,Sublime SFTP使用PSFTP,它与油灰。 加载到Pageant中的任何密钥将被自动使用。它是也可以提供.ppk私钥文件作为ssh_key_fileSFTP远程设置。 .ppk文件可以从头开始生成,或现有的OpenSSH私钥(通过PuTTYgen)。所有这些可以从PuTTY网站下载实用程序,但是没有Sublime SFTP才能正常运行是必需的。

您需要使用PuTTYgen创建您的私钥文件,然后打开Pageant并选择密钥。

在此处阅读更多信息:http://wbond.net/sublime_packages/sftp/faq#SSHKeyshttp://the.earth.li/~sgtatham/putty/0.61/htmldoc/Chapter9.html#pageant

您需要在sftp配置中指定ssh_key


0
投票

yo solucione el error realizando lo siguiente ..“ type”:“ sftp”,相当la's .. es decir lo deje“ type”:“ ftp”,y asi me dunciona sin problemas

© www.soinside.com 2019 - 2024. All rights reserved.