sftp

本文介绍如何在Sublime Text中安装及配置FTP插件,实现本地与远程服务器之间的文件同步。通过详细步骤说明,包括插件安装、配置文件创建等,帮助读者快速掌握配置流程。

##插件安装 按下Ctrl+Shift+P调出命令面板 输入install 调出 Install Package 选项并回车,然后输入ftp,下拉列表中会出现一些相关的插件,选中sftp进行安装就行了,装好后还需配置如下: 选菜单栏中的File->SFTP/FTP->Set up Server,然后出现一个配置窗口如下

输入ftpsync,选择FTPSync插件,点击确定,然后等待下载安装

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

    "sync_down_on_open": true,
    "sync_same_age": true,
    
    "host": "10.0.36.141",
    "user": "admin",
    "password": "admin@1234",
    //"port": "22",
    "save_before_upload": true,
     "upload_on_save": true,
    "remote_path": "/weixin/",
    //"file_permissions": "664",
    //"dir_permissions": "775",
    
    //"extra_list_connections": 0,
    "upload_on_save": true,
    "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,
}



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

    "sync_down_on_open": true,
    "sync_same_age": true,
    
    "host": "10.0.36.141",
    "user": "admin",
    "password": "admin@1234",
    //"port": "22",
     "save_before_upload": true,
     "upload_on_save": true,
    "remote_path": "/weixin/",
    //"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,
}

怎么生成配置文件

右键.map to

##参考文档: http://my.oschina.net/surjur/blog/392590

https://www.chenyudong.com/archives/sublime-text-install-ftp-plugin.html

https://wp.iirii.com/archives/sublime-text%e5%ae%89%e8%a3%85ftp%e6%8f%92%e4%bb%b6/

https://www.chenyudong.com/archives/sublime-text-graphviz-preview.html

https://wp.iirii.com/archives/%e5%9b%be%e7%89%87%e8%ae%be%e8%ae%a1%e7%9b%b8%e5%85%b3/

转载于:https://my.oschina.net/2016jyh/blog/784730

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值