视频教程:https://ninghao.net/video/3991
- 搜索 “remote ftp”, 点击 “Package”搜索包,Install”安装
- 本地打开需要同步的项目目录
- 创建 remote-ftp 的配置文件,Packages -> Remote-ftp -> creadte SFTP config file
- 修改配置文件,将host,账号密码替换,sftp默认配置
{
"protocol": "sftp",
"host": "example.com",
"port": 22,
"user": "user",
"pass": "pass",
"promptForPass": false,
"remote": "/",
"local": "",
"agent": "",
"privatekey": "",
"passphrase": "",
"hosthash": "",
"ignorehost": true,
"connTimeout": 10000,
"keepalive": 10000,
"keyboardInteractive": false,
"keyboardInteractiveForPass": false,
"remoteCommand": "",
"remoteShell": "",
"watch": [],
"watchTimeout": 500
}
- 添加 Remote并连接至服务器,Packages-> Remote-ftp-> Toggle, 添加 Remote 标签。Remote -> connect 链接至服务器
Sync local -> remote 同步到服务器
Sync local <- remote 服务器同步本地
--------------------- 本文来自 今天一点也不冷 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/qq_34827048/article/details/80625273?utm_source=copy
原文地址:https://www.cnblogs.com/my-blogs-for-everone/p/9757850.html
时间: 2024-10-14 10:23:39