| Crates.io | ssh-jail-dto |
| lib.rs | ssh-jail-dto |
| version | 0.4.1 |
| created_at | 2016-08-03 13:46:50.946084+00 |
| updated_at | 2016-08-11 14:37:35.825999+00 |
| description | DTO for ssh-jail |
| homepage | |
| repository | |
| max_upload_size | |
| id | 5876 |
| size | 5,604 |
Instruction syntaxInstruction is a json with two fieldsactionThe action field is one of:
ENABLE_SSHDSABLE_SSHkeysThe keys field is an array of ssh Keys to (un)authorize
KeyA 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 fieldstatusThe status field is one of
SUCCESSFAILUREDestination syntaxDestination is a json with two filedshostThe host field is a String
portThe port field is a u32