Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人知道在 Phing 构建中使用 SFTP 将文件上传到远程服务器的简单方法吗?我似乎找不到自定义或本地 Phing 任务来执行此操作。另一个问题是 SFTP unix 命令的交互性(到达主机后需要密码等)
有任何想法吗?
为什么不使用SCP(安全副本)?它由 Phing 直接支持(参见scp 任务文档)。
SCP
有关差异的概述,请参阅此网站...
您可以使用 phing sftp 任务: https ://github.com/discont/phing-sftptask