Page MenuHomePhabricator

Add an optional "--sshd-key" argument to "bin/ssh-auth" for reading "%k" from modern sshd
ClosedPublic

Authored by epriestley on Oct 29 2019, 12:49 AM.
Tags
None
Referenced Files
F18207398: D20874.id49761.diff
Mon, Aug 18, 6:29 PM
F18189881: D20874.id49763.diff
Sat, Aug 16, 10:39 PM
F18100776: D20874.id.diff
Sat, Aug 9, 12:04 PM
F18063933: D20874.id.diff
Mon, Aug 4, 1:18 PM
F18047546: D20874.diff
Sun, Aug 3, 12:28 PM
Unknown Object (File)
Jun 18 2025, 11:54 AM
Unknown Object (File)
Jun 18 2025, 7:16 AM
Unknown Object (File)
Jun 17 2025, 7:20 AM
Subscribers
None

Details

Summary

Depends on D20873. Ref T13436. Allow callers to configure "bin/ssh-auth --sshd-key %k" as an "AuthorizedKeysCommand"; if they do, and we recognize the key, emit just that key in the output.

Test Plan
  • Used git pull locally, still worked fine.
  • Instrumented things, saw the public key lookup actually work and emit a single key.
  • Ran without "--sshd-key", got a full key list as before.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable