sublime text 使用sftp连接frp内网穿透ftp服务器
frp设置,开放捉弄感动模式的端口,已经映射2121到本地21端口:
[common]
server_addr = 182.254.xxx.91
server_port = 7777
[web]
type = http
local_ip = 127.0.0.1
local_port = 8080
use_encryption = false
use_compression = false
subdomain = lj
[ftp]
type = tcp
local_ip = 127.0.0.1
local_port = 21
use_encryption = false
use_compression = false
remote_port = 2121
[ftp1]
type = tcp
local_ip = 127.0.0.1
local_port = 50000
use_encryption = false
use_compression = false
remote_port = 50000
[ftp2]
type = tcp
local_ip = 127.0.0.1
local_port = 50001
use_encryption = false
use_compression = false
remote_port = 50001
[ftp3]
type = tcp
local_ip = 127.0.0.1
local_port = 50002
use_encryption = false
use_compression = false
remote_port = 50002
sublime text 的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": 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": "182.254.xxx.91",
"user": "lxx",
"password": "lxx",
"port": "2121",
"remote_path": "/",
"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": "cp1252",
//"remote_locale": "C",
//"allow_config_upload": false,
}