Verify noninteractive SSH access, offering interactive key recovery when needed.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_ssh_ensure_access

Purpose

Verify noninteractive SSH access, offering interactive key recovery when needed.

Arguments

  • $1: User account.
  • $2: Remote host or site name.
  • $3: TCP port.
  • $4: Optional: configuration or response-field key.

Usage

  sgnd_ssh_ensure_access "deploy" "web.example.test" "22" "$HOME/.ssh/id_ed25519"