Check out ExpanDrive for Teams - Centralized cloud based configuration console for Teams

Strongspace SSH Keys API

Here is the API for listing, creating and removing [SSH Keys](https://www.strongspace.com/help/password-less-login-with-ssh-keys). Successful API calls return HTTP status codes in the 200s and errors have codes 400 and higher. This will be documented more fully in the future when we’ve settled on all the error codes across a wider array of functions.

The [prettyjson](https://gist.github.com/732368) command is optional, just for readability.
List your SSH Keys
—————

GET /api/v1/ssh_keys

Example:

curl -u hemancuso/token:***** https://www.strongspace.com/api/v1/ssh_keys | prettyjson
{
“ssh_keys”: [
{
“name”: “jmancuso@mactop.local”,
“key”: “ssh-rsa AAAAB3NzaC1yc2EAAAABIw……Az4GLQHoVcyw== jmancuso@mactop.local”,
“id”: 1
},
{
“name”: “jmancuso@blog.expandrive.com”,
“key”: “ssh-dss AAAAB3NzaC…ovUGhwtD41cHgxEzBeVvjkcN4= root@db1.expandrive.com”,
“id”: 2
}
] }

Add SSH key
——

POST /api/v1/ssh_keys
:key
:name [optional – key nickname]

Example:

curl -u hemancuso/token:***** -F ‘key=ssh-dss AAAAB3NzaC1kc3MAAACBAL….HgxEzBeVvjkcN4= jmancuso@blog.expandrive.com’ https://www.strongspace.com/api/v1/ssh_keys
{“status”: “ok”}

If the key already exits, it returns an error code and the body:

{“status”:”duplicate key”}

Delete SSH key
———–

DELETE /api/v1/ssh_keys/:id

Example:

curl -X DELETE -u hemancuso/token:***** https://www.strongspace.com/api/v1/ssh_keys/2
{“status”: “ok”}

If the key doesn’t exist or user doesn’t have access:

{“status”: “permission denied”}