Computer Setup action implementation
Source: target-root/usr/local/libexec/solidgroundux/manage-ssh-access.sh
Computer Setup action implementation
Public functions
Internal functions
| Function | Purpose | Arguments | Output |
|---|---|---|---|
_computer_ssh_user_guard | Keep deployment keys and agent owned by the login user. | — | — |
_computer_ssh_select_key | Prompt for a private key; accept only home SSH keys. | - $1: Name of the shell variable receiving the result. | — |
_computer_ssh_select_remote | Read and validate remote SSH login details. | - $1: Output variable for the user name. | — |
_computer_ssh_generate_user_key | Safely create a personal Ed25519 key pair. | — | — |
_computer_ssh_install_key | Copy only the public key after confirmation. | — | — |
_computer_ssh_agent_connect | Reuse or start a user-only agent at a stable socket. | — | — |
_computer_ssh_unlock_key | Load the deployment key into the agent. | — | — |
_computer_ssh_test_access | Verify unattended SSH with the chosen identity. | — | — |
_run_action | Dispatch the requested management action to its implementation. | - $1: Management action to execute. | — |
Description
Standalone management actions dispatched from 10-computer-setup.sh. UI, reporting and errors use the SolidGroundUX framework.
Usage
Run the executable from its shell command (or installed wrapper):
manage-ssh-access --action generate-key
Script-specific options:
--action NAME,-a: Computer Setup action (choices:generate-key,install-key,unlock-key,test-access).
SSH deployment access
These are USER keys for outbound connections, not the server HOST keys above. Run these actions as the intended deployment account (not with sudo).
