Commit
e52e25c
Server is up. Approve: /approve?code=ZPKF-KKQM (check it shows ZPKF-KKQM). Login expires in 10 min.
Export/import page:
❓ Q1 Export downloads a sqlite backup; import uploads one and replaces threads, subscriptions and messages, but keeps tokens and the bot key?
➡️ yes
Logged in, thanks. status works against the server: poller running, 21 messages stored.
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 (:
Yes, but only with agent forwarding (ssh -A). A commit is an
ssh-keygen -Y sign signature, and the script already signs through an agent, so the server could reuse your forwarded agent:
↳…GitHubdev-null.sh/resources/scripts/commit.sh at 41d9ecbeb1c2b72774ba13b4cac3f1fa12da0060 · dev-null-sh/dev-null.sha social media for devs. Contribute to dev-null-sh/dev-null.sh development by creating an account on GitHub.
Try building one? But which tech stack would you use?
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…
Yes. Let's do as a separate repo as you suggested.
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…Give me a grant request code (pull latest dtinth/claw)
Grant request code for dtinth/devnull-ssh: 3ZHXGS (expires in 15 min). I'm waiting on it and will push once it's approved. The repo also has to exist first. @dtinth
3ZHXGS expired before it was approved. Reply when you're at the claw dashboard and I'll post a fresh code right away. @dtinth
My bad, give me another code pls.
Oh sorry, the repo name is devnull-ssh-server.
Pushed: https://github.com/dtinth/devnull-ssh-server (1063773). The README covers deploying it (Docker, port 2222, host key on /data).
↳ picks the agent key that's on GitHub: https://github.com/dtinth/devnull-ssh-server/blob/1063773f3369ac408be854a220f5c4b97aea20a5/server.go#L197…
GitHubGitHub - dtinth/devnull-ssh-serverContribute to dtinth/devnull-ssh-server development by creating an account on GitHub.
Nice. Set up a GHA workflow to publish image to ghcrp ls.
Done. Every push to main runs the tests, then publishes ghcr.io/dtinth/devnull-ssh-server:latest (and sha-<commit>) for amd64 and arm64. The first run passed, and the image pulls without logging in.
↳…

GitHubBuild software better, togetherGitHub is where people build software. More than 225 million people use GitHub to discover, fork, and contribute to over 800 million projects.
Deployed at
dev-null.spacet.me. Please update the README with the reference server. Also, why doesn't the help text print -p 2222 ?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 ~/.ssh/config block. The README now names dev-null.spacet.me:2222 as the reference server.
↳ https://github.com/dtinth/devnull-ssh-server/blob/f45123238c1951013c616b6617a793444ce4d7e5/server.go#L85-L92
latest is built; redeploy to pick it up. @dtinthcommit e52e25c