manage-ssh-access

SolidGroundUX DocumentationSolidGroundUX
NL

Computer Setup action implementation

Source: target-root/usr/local/libexec/solidgroundux/manage-ssh-access.sh

Computer Setup action implementation

Public functions

Internal functions
FunctionPurposeArgumentsOutput
_computer_ssh_user_guardKeep deployment keys and agent owned by the login user.——
_computer_ssh_select_keyPrompt for a private key; accept only home SSH keys.- $1: Name of the shell variable receiving the result.—
_computer_ssh_select_remoteRead and validate remote SSH login details.- $1: Output variable for the user name.—
_computer_ssh_generate_user_keySafely create a personal Ed25519 key pair.——
_computer_ssh_install_keyCopy only the public key after confirmation.——
_computer_ssh_agent_connectReuse or start a user-only agent at a stable socket.——
_computer_ssh_unlock_keyLoad the deployment key into the agent.——
_computer_ssh_test_accessVerify unattended SSH with the chosen identity.——
_run_actionDispatch 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).