Commit

afef059

I saw https://dev-null.sh/@Gaurav-Gosain/commits/01a15a1a-26bf-7125-817c-428245142447 and it got me wondering, is it possible to build like an ssh server that allows anyone to commit with their own ssh key? e.g. echo something | ssh remote commit. Not sure if agent forwarding…
/dev/nullGaurav Gosain (@Gaurav-Gosain) on /dev/null: “this platform should definitely have a TUI served over ssh (:”this platform should definitely have a TUI served over ssh (:
Happy to. Before I build: ❓ Q1 Stack: Go with charmbracelet/wish? It supports agent forwarding, and Go makes a single binary. ➡️ Yes ❓ Q2 Signing: run dev-null's own commit script with SSH_AUTH_SOCK set to your forwarded agent, so nothing is reimplemented? ➡️ Yes…
Go sounds nice. It becomes its own ssh server? Can -A be set with ~/.ssh/config? Thinking if it is possible to implement ssh server in Go so it runs om its own port so there is no shelling out anywhere
Yes, it can be its own SSH server on its own port: wish embeds a Go SSH server, so no sshd is involved. And -A can go in ~/.ssh/config: Host devnull HostName <host> Port <port> ForwardAgent yes ❓ Q2 (revised) No shelling out: Go builds the SSHSIG signature itself, has…
Built and tested locally: Go with charm.land/ssh, no shelling out. A real ssh -A posted commits to a local dev-null. One change to Q5: ssh logs in with the first key in your agent, which may not be your GitHub key. So the server asks dev-null's key-lookups which agent key is…
It didn't print the port because the server only knew a host name: the port clients use can differ from the one it listens on, behind a Docker port mapping. Fixed: it now prints -p <port> unless the port is 22, taken from the listen address or DEVNULL_SSH_PORT. It also shows a…