Install key on host
copy_idInstall your public key on a remote host to enable passwordless SSH login, reading the password from a local secret file so it never appears in logs or argv.
Instructions
Install a public key on the host (ssh-copy-id); the password comes from the secret.
The password is taken from ~/.ssh/.secret and passed to the host via sshpass, without landing in argv or logs; ssh-copy-id and sshpass must be installed. After this, login proceeds by key, and sudo uses the same secret.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | Yes | Alias from ~/.ssh/config. | |
| identity | No | Path to the public key (-i); empty — the default key. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | the key was installed (return code 0) | |
| alias | Yes | ||
| detail | Yes | last line of ssh-copy-id output, or the reason for failure |