Phing + sftp to load a site as part of an automatic build

Does anyone know how easy it is to upload files to a remote server using SFTP from the Phing assembly? I don't seem to know how to do this. Another problem is the interactivity of the SFTP unix command (requiring a password after reaching the host, etc.).

Any ideas?

+4
source share
2 answers

Why not use SCP (Secure Copy)? It is directly supported by Phing (see scp Task documentation ).

See this website for an overview of the differences ...

+5
source

You can use the phing sftp task: https://github.com/discont/phing-sftptask

0
source

All Articles