Files
ShellBook/packages/core/test/fixtures/ssh-key.md
T
Florian Schmidt f0d5de691a feat(core): implement notebook parsing and safe parameter rendering (#1)
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.
2026-11-16 00:05:27 +01:00

1.1 KiB

title, params
title params
New server SSH key
host user keyname
type required label
host true Target server
type required default label
name true admin Login user
type default
name id_ed25519_{{host}}

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}}, then chmod 600 ~/.ssh/{{keyname}}
  • Windows: C:\Users\<you>\.ssh\{{keyname}} :::