GithubHelp home page GithubHelp logo

rluisr / authkeypush Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 265 KB

Deploy public key to bastion server of ssh.

License: MIT License

Go 46.74% HTML 50.24% CSS 2.09% Makefile 0.93%
go golang revel ssh deploy

authkeypush's Introduction

AuthKeyPush

MIT License Code Climate

Deploy public key to bastion server of ssh.

  • Go 1.7 => better

Overview

  1. Access http://localhost:9000
  2. Put name and public key.
  3. Submit

Screen shot

Top

top

Result

result

Installation

$ cd $GOPATH/src
$ git clone [email protected]:rluisr/AuthKeyPush.git
$ cd AuthKeyPush
$ make install

First setting

Setting information for bastion server of ssh. -> conf/ssh.json

[
  {
    "host": "13.112.xx.xx",
    "user": "ec2-user",
    "port": "22",
    "key": "/path/to/secret_key"
  },
  {
    "host": "192.168.xx.xx",
    "user": "foo",
    "port": "49155",
    "password": "foobar"
  }
]

Second setting

Put secret key /path/to/secret_key.

Run

$ cd $GOPATH/src/AuthKeyPush <- IMPORTANT
$ revel run AuthKeyPush

Change site message

check conf/site.json

Enable Authentication

Only support GitHub authentication. I'll support original authentication.
-> conf/site.json

{
  "title": "AuthKeyPush",
  "top-overview": "Deploy your public key of ssh",
  "auth-overview": "Login Page",
  "admin-overview": "Admin Page",
  "auth-github-login": 1,
  "github-client-id": "<clientid>",
  "github-client-secret": "<client secret>",
  "github-redirect-url": "<host>/auth/github",
  "github-allow-organization": "<Organization>"
}

GitHub

You must create OAuth application as organization is.

auth-github-login
0: Disable
1: Enable

github-allow-organization
allow organization name

authkeypush's People

Contributors

rluisr avatar

Watchers

 avatar

authkeypush's Issues

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.