Chapter 15 · Pro modulesPro 模块Pro 模組
SFTP remote editingSFTP 远程编辑SFTP 遠端編輯
Pro
Protocol support
Remote editing uses SFTP only. The FTP client was removed in 1.0.105; sessions created by older builds are converted to SFTP automatically.
Adding an account
- Open the remote panel and add a host.
- Enter the host name, port, user name and authentication method.
- Credentials are written to the macOS Keychain, not to preferences or logs.
Working with remote files
- Browse the remote directory tree and open a file into a normal tab.
- Saving writes back over SFTP. Unsaved changes follow the same session rules as local files.
- Encoding and line-ending handling is identical to local editing.
Security notes
- Host keys: the first connection records the host key; changing keys is worth investigating before accepting.
- Passwords and passphrases stay in the Keychain and are not echoed into diagnostic logs.
- Temporary files created for SSH authentication are written with restrictive permissions and cleaned up afterwards.
Troubleshooting
| Symptom | Likely cause |
|---|---|
| Authentication fails | Wrong key passphrase, or the server expects a different auth method. |
| Connection times out | Host unreachable, port blocked, or a corporate proxy in between. |
| Permission denied on save | The remote account lacks write permission on that path. |
| File appears empty | Encoding mismatch, or the remote file is genuinely zero bytes. |
Why not sync?
SFTP in VoloEdit is editing, not mirroring. There is no two-way sync, no conflict resolution and no background watcher. If you need deployment, use a dedicated sync tool.
Pro
协议支持
远程编辑仅支持 SFTP。FTP 客户端已在 1.0.105 移除;旧版本创建的会话会自动转换为 SFTP。
添加账户
- 打开远程面板并添加主机。
- 填写主机名、端口、用户名与认证方式。
- 凭据写入 macOS 钥匙串,不写入偏好设置或日志。
编辑远端文件
- 浏览远端目录树,把文件打开到普通标签。
- 保存时通过 SFTP 写回。未保存内容的处理规则与本地文件一致。
- 编码与行尾处理与本地编辑相同。
安全提示
- 主机密钥:首次连接会记录主机密钥;如果之后发生变化,接受前值得先查清原因。
- 密码与私钥口令保存在钥匙串,不会出现在诊断日志里。
- SSH 认证所需的临时文件以受限权限创建,并在使用后清理。
故障排查
| 现象 | 可能原因 |
|---|---|
| 认证失败 | 私钥口令错误,或服务端要求其他认证方式。 |
| 连接超时 | 主机不可达、端口被拦,或中间有企业代理。 |
| 保存提示无权限 | 远端账户对该路径没有写权限。 |
| 文件显示为空 | 编码不匹配,或远端文件本来就是 0 字节。 |
为什么不是同步
VoloEdit 的 SFTP 是编辑,不是镜像。没有双向同步、没有冲突解决、没有后台监听。需要部署请使用专门的同步工具。
Pro
協議支援
遠端編輯僅支援 SFTP。FTP 客戶端已在 1.0.105 移除;舊版本建立的工作階段會自動轉換為 SFTP。
添加帳戶
- 開啟遠端面板並添加主機。
- 填寫主機名、埠、使用者名與認證方式。
- 憑據寫入 macOS 鑰匙串,不寫入偏好設定或日誌。
編輯遠端檔案
- 瀏覽遠端目錄樹,把檔案開啟到普通標籤。
- 儲存時透過 SFTP 寫回。未儲存內容的處理規則與本機檔案一致。
- 編碼與行尾處理與本機編輯相同。
安全提示
- 主機密鑰:首次連接會記錄主機密鑰;如果之後發生變化,接受前值得先查清原因。
- 密碼與私鑰口令儲存在鑰匙串,不會出現在診斷日誌里。
- SSH 認證所需的臨時檔案以受限權限建立,並在使用後清理。
故障排查
| 現象 | 可能原因 |
|---|---|
| 認證失敗 | 私鑰口令錯誤,或服務端要求其他認證方式。 |
| 連接超時 | 主機不可達、埠被攔,或中間有企業代理。 |
| 儲存提示無權限 | 遠端帳戶對該路徑沒有寫權限。 |
| 檔案顯示為空 | 編碼不匹配,或遠端檔案本來就是 0 位元組。 |
為什麼不是同步
VoloEdit 的 SFTP 是編輯,不是鏡像。沒有雙向同步、沒有衝突解決、沒有後台監聽。需要部署請使用專門的同步工具。