configuration /
security /
ssh
CLI REST-API
generate-hostkeys
generate-hostkeys [key-length]
The "generate-hostkeys" command generates new SSH keys.
An optional key-length can be entered.
Otherwise the ssh-key-len setting will be taken.
RESTAPI: The data can be passed in the body like this:
{
"parameters": {
"key-length": 1024
}
}
Name | Value | Description | Example |
---|
| key-length | | 1024 |
See also:
/configuration/security/ssh: ssh Configuration
REST-API Support:
This command is supported by the REST API:
Method: PUT
URL: /api/configuration/security/ssh/generate-hostkeys
Body:
{
"parameters": {
"key-length": [key-length]
}
}
Example using curl:
curl -X PUT /api/configuration/security/ssh/generate-hostkeys -d
"{
\"parameters\": {
\"key-length\": 1024
}
}"