Giter Site home page Giter Site logo

Comments (3)

lucasmotta avatar lucasmotta commented on May 30, 2024 1

I've updated DPLOY on a separated branch for this issue, because I can't test it right now on a SFTP server.
So if you guys could give it a try, just clone this branch:
https://github.com/LeanMeanFightingMachine/dploy/tree/issue33

And then run grunt (to compile the JS) and link with npm. If you are happy with that, I will merge to master and release a new version.

Now you can set the passphrase parameter on the config file. It works exactly like on the ssh2 library: For an encrypted private key, this is the passphrase used to decrypt it.

server:
    scheme: sftp
    host: sftp.your-host.com
    user: your-user
    privateKey: ~/.ssh/id_rsa
    passphrase: your-passphrase-here

Cheers,
Lucas

from dploy.

yahreen avatar yahreen commented on May 30, 2024

+1

from dploy.

lucasmotta avatar lucasmotta commented on May 30, 2024

Hey @Dennisimo, thanks for pointing this out. I was reading the documentation of the ssh2 library again and it looks like I missed the passphrase option in case your privateKey is encrypted.

But instead of creating another parameter on DPLOY, I think I am gonna use the same pass parameter.
So if you set the privateKey, DPLOY will try to use the pass parameter as the passphrase. Does it makes sense?

from dploy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.