Questions tagged [grunt-ssh]

A grunt library for SSH and SFTP tasks.

grunt-ssh provides two grunt tasks for SSH

sftp

Copies files to a remote server over SSH.

sshexec

runs a command over ssh.

There are a number of parameters that are to be passed for each of these tasks to the grunt file. For more details go to github

12 questions
3
votes
1 answer

grunt-ssh gives - Error: no such file while upload

i have problems using the grunt-ssh plugin. So far i've written a testcode to check the functionality before using it in the real environment. This is my gruntfile: module.exports = function(grunt) { // Project configuration. …
sonnenpriester
  • 159
  • 2
  • 12
3
votes
1 answer

Copy files recursively with grunt-ssh

I try to use grunt-ssh for deployment. But I get only the files of the folder copied: sftp: { deploy: { files: { "./": "doc/*" }, options: { path: '<%= pkg.server.path %>', host: '<%= pkg.server.host %>', …
witrin
  • 3,701
  • 1
  • 24
  • 49
2
votes
1 answer

cd command not executed on grunt-ssh task

I'm running the task "grunt-ssh" github/ssh, and it works fine, except for the cd command, here is my code: grunt.initConfig({ sshexec: { connect: { command: ['ls'], options: { host:…
Franco Aguilera
  • 617
  • 1
  • 8
  • 25
2
votes
1 answer

Passing variable file name to grunt.file.read

When trying to pass the users private key to grunt-ssh I want each developer to be able to setup their server keys in a Gruntsetting.json loaded in the Gruntfile like so: settings: grunt.file.readJSON('Gruntsettings.json'), sshexec: { …
Ben
  • 4,301
  • 6
  • 37
  • 61
1
vote
1 answer

Download remote assets with grunt-ssh

I've implemented grunt-ssh plugin in order to download assets from the remote server but with no luck. There're no files listed for download. Official grunt-ssh site has no explanation about the download method, there're few issue threads only. My…
swolfish
  • 771
  • 1
  • 9
  • 25
1
vote
0 answers

Grunt-SSH : can't process sshexec

I'm trying to use grunt-ssh to deploy my app. I installed grunt-ssh, everything seems ok. Here is the grunt : module.exports = function(grunt){ grunt.initConfig({ // don't keep passwords in source control secret:…
kiouv
  • 31
  • 3
0
votes
0 answers

pty for root user and sudo commands with grunt-ssh

from issue 143 in grunt-ssh : I'm trying to perform the following: connect via ssh as a regular user switch to root user and execute a command with privileges, e.g.: ls /root exit root close connection as the regular user (this is could be…
Franco Aguilera
  • 617
  • 1
  • 8
  • 25
0
votes
1 answer

Grunt-ssh and grunt-watch to sftp on changed files

Im trying to get grunt-ssh sftp to work with grunt-watch to only send modified files. I manage to get this to work but with a wired problem my grunt config grunt.initConfig({ watch: { upload: { files: ['*.*'], …
Neil
  • 766
  • 1
  • 8
  • 23
0
votes
0 answers

Cannot get grunt-scp, grunt-sftp, grunt----- anything to upload to my server except grunt-ftp

So, I'm struggling here with getting grunt-scp to work. I'm with a huge telecom and I'm internal to their system or at home on VPN. I can ssh into the server and using WINSCP. So here's where I got my example: Grunt SCP Example And now my…
Peter The Angular Dude
  • 1,112
  • 5
  • 26
  • 53
0
votes
1 answer

Unable to use grunt-ssh to do tasks on server

i am trying to use grunt-ssh to automate deployment of server from my macbook pro. So what i am trying to do with this task is to pull from my private bitbucket depository. Deployment is looks okay once i do grunt deploy on bash but nothing gets…
jomaint
  • 105
  • 1
  • 9
0
votes
1 answer

How to access variable from specific environment with Grunt

I'm using the following Grunt configuration to run some commands on the test or production server: ... secret_test: grunt.file.readJSON('./deploy/test.json'), secret_prod: grunt.file.readJSON('./deploy/prod.json'), sshconfig: { test: { host:…
Luc
  • 16,604
  • 34
  • 121
  • 183