Giter VIP home page Giter VIP logo

deploy9's Introduction

deploy9

A library to automatically deploy commands to joyent

Install

npm install deploy9 -g

Usage

This lib Assumes your system is already capable of accessing Joyent from the commandline with a non-password protected key.

If you keyfile is password protected see Generating Non-Password Keys below

deploy9 COMMANDTORUN -a USERNAME -i NAMEOFKEYONSERVER  -k YOURPRIVATEKEY

Example

deploy9 ls -a nearform -i /nearform/keys/nearform_joyent_rsa  -k nearform_joyent_rsa

Generating Non-Password Keys

Create an key file that is not password protected

ssh-keygen -t rsa -C "[email protected]"

MAKE SURE THAT YOU SPECIFIY A DIFFERENT LOCATION THAN THE DEFAULT

Don't enter a password. This is required as ssh2 has no way of prompting for passwords as yet.

Copy the .pub up to your Joyent public key store

TODO

  1. Execute multiple commands instead of one huge string to improve debugging.

  2. Improve error handling

Licence

MIT

deploy9's People

Contributors

no9 avatar

Watchers

 avatar James Cloos avatar

deploy9's Issues

Password protected ssh keys

You can pass in a passphrase options for password-protected ssh keys and you can also authenticate using ssh-agent (and/or pageant on Windows). Authenticating with ssh-agent allows you to use password-protected ssh keys, but you only have to type the passphrase in once and do not have to store the passphrase in plaintext.

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.