In this recipe, we'll make use of the
sftp task, which is provided by the
ssh (0.12.2) plugin to upload files to a hosting server, using the SSH File Transfer Protocol (SFTP).
The SFTP provides the same functionality as the regular FTP that was discussed in the previous recipe, but with benefits from an added layer of security by making use of the Secure Shell (SSH) network protocol.
In this example, we'll work with the basic project structure that we created in the Installing Grunt on a project recipe in Chapter 1, Getting Started with Grunt. Be sure to refer to it if you are not yet familiar with its contents.
In addition to the standard project setup, the following recipe will also require an existing user account ...