summaryrefslogtreecommitdiff
path: root/op-mode-definitions/generate-ssh-server-key.xml.in
blob: ecea3e5d1b565a2f9c280c7c9af7eeefb6a80cd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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>sudo ${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>&lt;filename&gt;</list>
              </completionHelp>
            </properties>
            <command>ssh-keygen -t rsa -f "$4" -N ""</command>
          </tagNode>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>