Sublime Text SFTP

这篇博客介绍了如何通过PackageControl在Sublime Text中安装SFTP插件,以便进行远程文件同步。首先,需按下Ctrl+Shift+P激活命令面板并安装PackageControl,接着搜索并安装SFTP。安装完成后,用户需设置SFTP配置文件,包括服务器IP、用户名、远程路径等信息,以实现与远程服务器的无缝连接。

首先通过 Ctrl + shift + p 安装 package control

安装成功后输入install

然后输入 SFTP 即可安装 

点击 Setup Server 添加服务器

 

 输入以下内容,然后保存

{
    // The tab key will cycle through the settings when first created
    // Visit https://codexns.io/products/sftp_for_subime/settings for help
    
    // sftp, ftp or ftps
    "type": "sftp",

    "sync_down_on_open": true,
    "sync_same_age": true,
    
    "host": "服务器IP",
    "user": "用户名",
    //"password": "你的密码",
    //"port": "22",
    
    "remote_path": "你想要远程连接的路径",
    //"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,
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值