News for hackers. Stuff that matters.
Re:An excruciatingly detailed guide to SSH (but only the thi... by detuur on Wednesday August 23, 2023 @06:17PM (#37242585)
Some years ago, I read a post on HN where someone made a text-mode game(? or something similar?) available through SSH. People could play the game by opening an SSH session and play from their terminals. This was non-trivial, and they explained all the ways they configured sshd to prevent players from running binaries other than the game.

I didn't bookmark that post, and I haven't been able to find it again to my great dismay. If anyone remembers this post and still has it, I'd love to read it again.

Re:An excruciatingly detailed guide to SSH (but only the thi... by gruffypuffy on Wednesday August 23, 2023 @06:26PM (#37242676)
Re:An excruciatingly detailed guide to SSH (but only the thi... by detuur on Thursday August 24, 2023 @03:02AM (#37245880)
It's not that, but still very cool!
Re:An excruciatingly detailed guide to SSH (but only the thi... by e12e on Thursday August 24, 2023 @09:37AM (#37248616)
> they configured sshd to prevent players from running binaries other than the game

You might be interested in how to limit users to nologin shell coupled with subsystem access:

https://news.ycombinator.com/item?id=3527754

Re:An excruciatingly detailed guide to SSH (but only the thi... by detuur on Tuesday August 29, 2023 @09:35AM (#37307699)
None of the links here seem to be the one post that I found years ago, but this one in particular is pretty interesting.

I found this[1] one while looking around, the thread has some additional interesting remarks, including an LD_PRELOAD attack vector.

[1]: https://news.ycombinator.com/item?id=3550944