Crates.io | ssh-jail-dto |
lib.rs | ssh-jail-dto |
version | 0.4.1 |
source | src |
created_at | 2016-08-03 13:46:50.946084 |
updated_at | 2016-08-11 14:37:35.825999 |
description | DTO for ssh-jail |
homepage | |
repository | |
max_upload_size | |
id | 5876 |
size | 5,604 |
Instruction
syntaxInstruction
is a json with two fieldsaction
The action
field is one of:
ENABLE_SSH
DSABLE_SSH
keys
The keys
field is an array of ssh Key
s to (un)authorize
Key
A Key
is composed of two String
fields:
user
which is the user idkey
which is the actual public key{
"action": "ENABLE_SSH",
"keys" : [
{
"user": "user_foobar",
"key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO16Z2PGX5UzhQLlKCxhJ4c+4+WQRPZAZtoL9oekpm keruspe@Lou"
}
]
}
Answer
syntaxAnswer
is a json with one fieldstatus
The status
field is one of
SUCCESS
FAILURE
Destination
syntaxDestination
is a json with two filedshost
The host
field is a String
port
The port
field is a u32