Skip to content

Add --key-dir flag to configure iroh-ssh key location#40

Merged
rustonbsd merged 24 commits into
rustonbsd:mainfrom
r-vdp:rvdp/key_dir
Apr 2, 2026
Merged

Add --key-dir flag to configure iroh-ssh key location#40
rustonbsd merged 24 commits into
rustonbsd:mainfrom
r-vdp:rvdp/key_dir

Conversation

@r-vdp

@r-vdp r-vdp commented Mar 28, 2026

Copy link
Copy Markdown
Contributor

The irohssh_ed25519 key path was hardcoded to ~/.ssh. This adds a --key-dir option to the server, info, service install, and run-service commands so users can store keys in a custom directory.

When --key-dir is set, the service-specific overrides (/root/.ssh on Linux, ServiceProfiles on Windows) are skipped in favor of the explicit path.

The first commit is just cargo fmt on the existing codebase — happy to drop it if you'd prefer to keep formatting separate.

r-vdp added 2 commits March 17, 2026 15:09
The irohssh_ed25519 key path was hardcoded to ~/.ssh. Add a --key-dir
option to server, info, service install, and run-service commands so
users can store keys in a custom directory.

When --key-dir is set, the service-specific overrides (/root/.ssh on
Linux, ServiceProfiles on Windows) are skipped in favor of the
explicit path.
@rustonbsd rustonbsd added the feature New feature or request label Mar 28, 2026
@rustonbsd

Copy link
Copy Markdown
Owner

Hi @r-vdp,

thank you for the PR! I will merge this in with v0.2.10. I will rebase main after the #39 is closed (and maybe add a cicd test for key loading).

@rustonbsd

rustonbsd commented Apr 1, 2026

Copy link
Copy Markdown
Owner

Todo:

  • new 0.2.10 tag
  • nix pkg update
  • gh release
  • crates.io release

@rustonbsd rustonbsd merged commit afcfcf4 into rustonbsd:main Apr 2, 2026
6 checks passed
@rustonbsd

Copy link
Copy Markdown
Owner

Thank you @r-vdp for this PR. Just finished the release:

https://crates.io/crates/iroh-ssh/0.2.10

@r-vdp r-vdp deleted the rvdp/key_dir branch April 2, 2026 22:53
@rustonbsd

Copy link
Copy Markdown
Owner

Hi @futpib, I have updated iroh-ssh to v0.2.10. If you have some time you can update the arch package. Thank you.

@futpib

futpib commented Apr 4, 2026

Copy link
Copy Markdown
Contributor

@rustonbsd it builds whatever is in your git every time, if it does not fail it's on the latest version, that's how AUR works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants