2 releases

Uses old Rust 2015

0.4.1 Aug 11, 2016
0.4.0 Aug 11, 2016
0.3.0 Aug 11, 2016
0.2.1 Aug 3, 2016
0.1.1 Aug 3, 2016

42 downloads per month

MIT license

4KB
58 lines

Instruction syntax

Each instruction is a json with two fields

action

The action field is one of:

  • ENABLE_SSH
  • DSABLE_SSH

keys

The keys field is an array of ssh keys to (un)authorize

ssh key

An ssh key is composed of two String fields:

  • "user" which is the user id
  • "key" which is the actual public key

Example

{
    "action": "ENABLE_SSH",
    "keys"  : [
        {
            "user": "user_foobar",
            "key":  "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO16Z2PGX5UzhQLlKCxhJ4+1c+4+WQRPZAZtoL9oekpm keruspe@Lou"
        }
    ]
}

Dependencies

~225KB