Giter VIP home page Giter VIP logo

Comments (5)

tvaughan avatar tvaughan commented on August 24, 2024

I most likely have to make username optional like I had to with the rsync deploy method for this to work, but your ~/.ssh/config could look something like:

Host sftp.example.com
    User ubuntu
    IdentityFile ~/.ssh/example.pem

In which case your scp command could look like

scp -c 3des -2 -p 22 somefile sftp.example.com:/home/ubuntu/

And then you'd just have to specify host and remote path in config.rb for the sftp deploy method.

Does that make sense?

from middleman-deploy.

xeraa avatar xeraa commented on August 24, 2024

Works like a charm with master - thanks a lot! Maybe just add a comment in the documentation, since this isn't all that obvious IMHO.

I've set the same username in config.rb as in ~/.ssh/config, so setting it to optional isn't required.

from middleman-deploy.

tvaughan avatar tvaughan commented on August 24, 2024

Great. Thanks for the update.

I pushed out v0.1.3 which makes username and password optional for sftp. There was a case with rsync where username needed to be optional so that a team of people could use the same config.rb bus specify different usernames in their ssh config.

I also turned on the wiki in this repo. Please see: https://github.com/tvaughan/middleman-deploy/wiki/How-to-use-a-cert-with-rsync-or-sftp. Improvements welcomed.

from middleman-deploy.

xeraa avatar xeraa commented on August 24, 2024

Ok, I've added a minimal description on how to set this up :)

from middleman-deploy.

tvaughan avatar tvaughan commented on August 24, 2024

Damn. That was dumb of me. I created pages with periods at the end of their names. https://github.com/tvaughan/middleman-deploy/wiki/_pages Sorry to have you do duplicate work. But of course thanks!

from middleman-deploy.

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.