diff options
Diffstat (limited to 'templates/system')
3 files changed, 22 insertions, 0 deletions
diff --git a/templates/system/login/user/node.tag/authentication/public-keys/node.def b/templates/system/login/user/node.tag/authentication/public-keys/node.def new file mode 100644 index 00000000..6c1ffbc2 --- /dev/null +++ b/templates/system/login/user/node.tag/authentication/public-keys/node.def @@ -0,0 +1,9 @@ +tag: +type: txt +help: Set remote access public keys +comp_help: The key identifier is a usually user@host as generated by ssh-keygen + +commit:expression: $VAR(./type/) != "" ; \ + "Must configure public key type for $VAR(@)" +commit:expression: $VAR(./key/) != "" ; \ + "Must configure public key value for $VAR(@)" diff --git a/templates/system/login/user/node.tag/authentication/public-keys/node.tag/key/node.def b/templates/system/login/user/node.tag/authentication/public-keys/node.tag/key/node.def new file mode 100644 index 00000000..70af5961 --- /dev/null +++ b/templates/system/login/user/node.tag/authentication/public-keys/node.tag/key/node.def @@ -0,0 +1,9 @@ +type: txt +help: Set public key value (base64) +syntax:expression: pattern $VAR(@) "^[0-9A-Za-z+/=]*$" ; \ + "Invalid public key character not base-64" + +comp_help: Base64 encoded public key value. + The key is usually serval hundred bytes long (because of the size of + the public key encoding). You don't want to type it in directly, + instead use the loadkey interface. diff --git a/templates/system/login/user/node.tag/authentication/public-keys/node.tag/type/node.def b/templates/system/login/user/node.tag/authentication/public-keys/node.tag/type/node.def new file mode 100644 index 00000000..b2cb9652 --- /dev/null +++ b/templates/system/login/user/node.tag/authentication/public-keys/node.tag/type/node.def @@ -0,0 +1,4 @@ +type: txt +help: Set public key type +allowed: echo "ssh-dsa ssh-rsa" +syntax:expression: $VAR(@) in "ssh-rsa", "ssh-dsa" ; "Unknown key type" |