I would like to confirm that the following grunt-ssh task configuration ( https://github.com/andrewrjones/grunt-ssh ) did a great job with me. Note that grunt accepts the --verbose option, which can help debug. Note that with v0.6.2, the grunt-ssh SFTP task did not seem to support the sshconfig syntax, which was not very clear on the help page.
sftpCredentials: grunt.file.readJSON('sftp-credentials.json'), sftp: { deploy: { files: { "./": "deploy/**" }, options: { "path": "<%= sftpCredentials.path %>", "host": "<%= sftpCredentials.host %>", "username": "<%= sftpCredentials.username %>", "port": "<%= sftpCredentials.port %>", "password": "<%= sftpCredentials.password %>", "srcBasePath": "deploy/", "createDirectories": true } } }
sbat
source share