TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

SSH agent extensions as an arbitrary RPC mechanism

113 pointsby JNRowe11 months ago

3 comments

wiktor-k11 months ago
SSH agent extensions are really powerful.<p>I&#x27;m maintaining a crate for writing own agents (and clients) and just recently added an example of providing decryption over extensions [0] which, coupled with the other examples, allows using SSH agent as a proxy between OpenPGP Card devices (eg Yubikeys) and OpenPGP encrypted data.<p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;wiktor-k&#x2F;ssh-agent-lib&#x2F;pull&#x2F;70">https:&#x2F;&#x2F;github.com&#x2F;wiktor-k&#x2F;ssh-agent-lib&#x2F;pull&#x2F;70</a><p>Got some really positive feedback about this one: <a href="https:&#x2F;&#x2F;chaos.social&#x2F;@Foxboron&#x2F;112416348981479022" rel="nofollow">https:&#x2F;&#x2F;chaos.social&#x2F;@Foxboron&#x2F;112416348981479022</a> ;)<p>&gt; Windows didn&#x27;t really do Unix sockets until recently so everything there is awful<p>Sadly the support for Unix sockets on Windows in Rust&#x27;s standard lib is stuck in a limbo: <a href="https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;libs-team&#x2F;issues&#x2F;271">https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;libs-team&#x2F;issues&#x2F;271</a><p>Fortunately the built-in Windows&#x27; SSH client and agent work over Named Pipes and it&#x27;s quite easy to communicate with them that way: <a href="https:&#x2F;&#x2F;github.com&#x2F;wiktor-k&#x2F;ssh-agent-lib#agent">https:&#x2F;&#x2F;github.com&#x2F;wiktor-k&#x2F;ssh-agent-lib#agent</a>
评论 #40676247 未加载
评论 #40681097 未加载
42wim11 months ago
I&#x27;ve done the same with <a href="https:&#x2F;&#x2F;github.com&#x2F;42wim&#x2F;ssh-agentx&#x2F;">https:&#x2F;&#x2F;github.com&#x2F;42wim&#x2F;ssh-agentx&#x2F;</a> Originally used to sign git commits with pgp in the sshagent, before ssh git commit signing was a thing.<p>Nowadays, I&#x27;m using it for signing code remotely on a server with a yubikey on the local laptop. (needs a patched relic - <a href="https:&#x2F;&#x2F;github.com&#x2F;42wim&#x2F;relic&#x2F;tree&#x2F;sshtoken">https:&#x2F;&#x2F;github.com&#x2F;42wim&#x2F;relic&#x2F;tree&#x2F;sshtoken</a>)<p>Also works with windows as it uses <a href="https:&#x2F;&#x2F;github.com&#x2F;buptczq&#x2F;WinCryptSSHAgent">https:&#x2F;&#x2F;github.com&#x2F;buptczq&#x2F;WinCryptSSHAgent</a> that did the hard work to get it to talk with almost everything that exists in windows&#x2F;wsl&#x2F;putty etc.
ArchOversight11 months ago
Does the code for this exist somewhere?
评论 #40676255 未加载
评论 #40673098 未加载