当前位置: 首页 > 工具软件 > remote-ftp > 使用案例 >

atom通过remote-ftp实现与服务器文件同步

宗政海
2023-12-01
  • 搜索 “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  服务器同步本地
 类似资料: