Deploy public key to bastion server of ssh.
- Go 1.7 => better
- Access
http://localhost:9000
- Put name and public key.
- Submit
$ cd $GOPATH/src
$ git clone [email protected]:rluisr/AuthKeyPush.git
$ cd AuthKeyPush
$ make install
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"
}
]
Put secret key /path/to/secret_key
.
$ cd $GOPATH/src/AuthKeyPush <- IMPORTANT
$ revel run AuthKeyPush
check conf/site.json
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>"
}
You must create OAuth application as organization is.
auth-github-login
0
: Disable
1
: Enable
github-allow-organization
allow organization name