Parse YAML frontmatter, shell steps and conditional sections with source ranges and diagnostics. Resolve typed defaults and runtime values through one script substitution path, keeping secrets env-only and validating artifact metadata. Add yaml for standards-compliant frontmatter parsing and bounded alias handling rather than implementing YAML locally. Cover the spec example and edge cases with 59 core tests, including 256 POSIX shell quoting round trips.
1.1 KiB
1.1 KiB
title, params
| title | params | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| New server SSH key |
|
New server SSH key
Creates a key pair for {{user}} on {{host}} and authorizes it.
id {{user}}
sshd -T | grep -qx 'passwordauthentication no'
ssh-keygen -q -t ed25519 -N '' -C {{user}}@{{host}} -f {{keyname}}
install -d -m 700 -o {{user}} -g {{user}} ~{{user}}/.ssh
cat /tmp/new_key.pub >> ~{{user}}/.ssh/authorized_keys
rm /tmp/new_key.pub
:::after{step=keygen} Download the private key above, then save it:
- Linux:
~/.ssh/{{keyname}}, thenchmod 600 ~/.ssh/{{keyname}} - Windows:
C:\Users\<you>\.ssh\{{keyname}}:::