diff options
Diffstat (limited to 'op-mode-definitions/generate-ssh-server-key.xml.in')
-rw-r--r-- | op-mode-definitions/generate-ssh-server-key.xml.in | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/op-mode-definitions/generate-ssh-server-key.xml.in b/op-mode-definitions/generate-ssh-server-key.xml.in new file mode 100644 index 000000000..86bb1b1bd --- /dev/null +++ b/op-mode-definitions/generate-ssh-server-key.xml.in @@ -0,0 +1,32 @@ +<?xml version="1.0"?> +<interfaceDefinition> + <node name="generate"> + <properties> + <help>Generate an object/key</help> + </properties> + <children> + <node name="ssh"> + <properties> + <help>Generate SSH related keypairs</help> + </properties> + <children> + <node name="server-key"> + <properties> + <help>Re-generate SSH host keys and restart SSH server</help> + </properties> + <command>${vyos_op_scripts_dir}/generate_ssh_server_key.py</command> + </node> + <tagNode name="client-key"> + <properties> + <help>Re-generate SSH client keypair</help> + <completionHelp> + <list><filename></list> + </completionHelp> + </properties> + <command>ssh-keygen -t rsa -f "$4" -N ""</command> + </tagNode> + </children> + </node> + </children> + </node> +</interfaceDefinition> |