Skip to content

feat(keys): add install sub-command for remote public key setup#68

Merged
Vaso73 merged 5 commits into
mainfrom
copilot/prepare-remote-key-setup-helper
Apr 6, 2026
Merged

feat(keys): add install sub-command for remote public key setup#68
Vaso73 merged 5 commits into
mainfrom
copilot/prepare-remote-key-setup-helper

Conversation

Copilot AI commented Apr 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a new ssh keys install flow for installing a registered SSH public key on a remote Linux host.

What changed

  • add new ssh keys install sub-command
  • add progressive 3-step install flow for registered key aliases
  • add Run remote setup command
  • add Copy remote setup command
  • add Copy public key
  • add RemoteKeyInstallBuilder for public key validation and idempotent remote command building
  • add terminal-visible success/failure messaging for the run flow
  • update keys menu usage text to include install
  • add tests for validation, command building, routing, and behavior

Runtime verified

  • ssh keys install flow works
  • Copy public key works
  • Copy remote setup command copies a shell-valid command
  • Run remote setup command works
  • key is added to ~/.ssh/authorized_keys
  • repeated runs do not create duplicates
  • success message is shown in the terminal
  • failure message is shown for connection-level failures
  • keys menu usage text includes install

User-facing impact

  • This PR changes user-facing behavior
  • This PR adds or changes commands
  • This PR changes installation, shell, config parsing, import/export, or profile behavior
  • README.md was updated if required

Release intent

  • release:patch
  • release:minor
  • release:major
  • skip-release

Scope notes

  • only registered key aliases are supported in this version
  • no sshd_config changes
  • no password capture
  • no sudo escalation
  • no custom port or jump host support
  • no Windows remote host support
  • no key removal / undo flow

Validation

  • CI passes
  • Tests were added or updated when needed
  • Workflow files remain aligned with current main

Notes

  • no version bump in this PR
  • release-only version bump should happen in a separate PR after merge

Copilot AI and others added 5 commits April 6, 2026 16:58
Add `ssh keys install <alias> <user@host>` command that builds an
idempotent bootstrap one-liner to deploy a registered public key to a
remote Linux host's ~/.ssh/authorized_keys.

Three action rows:
- Run remote setup command (opens terminal)
- Copy remote setup command (clipboard)
- Copy public key (clipboard)

New files:
- RemoteKeyInstallBuilder.cs — command builder + validation
- Tests/RemoteKeyInstallBuilderTests.cs — unit tests

Modified files:
- Main.cs — routing, score constant, HandleKeysInstall method
- AutoCompleter.cs — install in KeysSubCommands + description
- Languages/en.xaml — localization keys
- README.md — command table + Key Installation section

Agent-Logs-Url: https://github.com/Vaso73/Flow.Launcher.Plugin.QuickSSH/sessions/de792d53-81d7-4ea9-a8d1-e44983d46454

Co-authored-by: Vaso73 <50487331+Vaso73@users.noreply.github.com>
Copilot AI requested a review from Vaso73 April 6, 2026 19:45
@Vaso73
Vaso73 marked this pull request as ready for review April 6, 2026 19:48
@Vaso73
Vaso73 merged commit 5f5e041 into main Apr 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants