You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure if gulp-rsync support private/public key option for connection, but I suppose you can configure your ssh client in order to use the key.pem file whenever you connect to a specific host.
Just create a file config inside the folder $HOME/.ssh/ and write something like this:
Host example
HostName example.com
Port 22
User username
IdentityFile /path/to/my/key.pem
Then you can connect with gulp-rsync using as hostname the label name "example".
Just recently came into this issue and managed to put it together. Since no one else on the web posted a solution, figured I'd do my duty here and pass it along. Hope it can still be useful to others:
gulp-rsync doesn't support this by default, but back in 2015 there was an added feature for any custom options when running the command (#17). You can attach the -e option to your shell command like so:
The rsync command would looks similar to this:
rsync -rave "ssh -i /path/to/my/key.pem" example/* [email protected]:/var/www/html/example/
I'm wondering how do I achieve the same thing on gulp-rsync ?
The text was updated successfully, but these errors were encountered: