Skip to content

Add hardened SSH client config - #22

Open
akan72 wants to merge 2 commits into
akan72/zed-keymap-fixfrom
akan72/ssh-config
Open

Add hardened SSH client config#22
akan72 wants to merge 2 commits into
akan72/zed-keymap-fixfrom
akan72/ssh-config

Conversation

@akan72

@akan72 akan72 commented May 29, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add a tracked, hardened SSH client configuration with secure global defaults.
  • Configure GitHub for the Ed25519 identity, preserve macOS Keychain support, and include a private machine-local config.
  • Stack position 13 of 15, after Remove empty Zed keymap entry #21.

Test Plan

  • Ran the complete installer in a fresh synthetic home on the Mac mini.
  • Rendered effective settings using ssh -G: IdentitiesOnly changed from no to yes.
  • Ran bash -n assimilate.sh and git diff --check.
  • Screenshots: not applicable; validation was CLI-based.

@akan72
akan72 changed the base branch from main to akan72/zed-keymap-fix August 22, 2026 19:29
@akan72
akan72 force-pushed the akan72/ssh-config branch 2 times, most recently from a3babe5 to 12f85a5 Compare August 22, 2026 19:36
@akan72
akan72 force-pushed the akan72/ssh-config branch from 12f85a5 to 900d6cb Compare August 22, 2026 19:42
@akan72
akan72 force-pushed the akan72/ssh-config branch from 900d6cb to d775bbc Compare August 22, 2026 19:46
@akan72
akan72 force-pushed the akan72/ssh-config branch from d775bbc to c360826 Compare August 22, 2026 19:50
akan72 added 2 commits August 22, 2026 15:53
- Add ssh/config with secure defaults for Host *: HashKnownHosts, AddKeysToAgent,
  IdentitiesOnly, VisualHostKey, StrictHostKeyChecking ask
- Add a github.com Host block using ~/.ssh/id_ed25519
- Symlink ssh/config -> ~/.ssh/config in assimilate.sh and enforce
  chmod 700 ~/.ssh + chmod 600 ~/.ssh/config (SSH rejects loose permissions)
The tracked config replaces ~/.ssh/config wholesale, which dropped the
existing machine-local Host entry and the UseKeychain setting. Include
config.local (untracked; repo is public) preserves per-machine hosts, and
IgnoreUnknown lets UseKeychain coexist with Linux ssh.
@akan72
akan72 force-pushed the akan72/ssh-config branch from c360826 to d772ed6 Compare August 22, 2026 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant