r/AskProgramming • u/Otter502 • Aug 03 '26
Other how to use a neutered / emulated SSH server for an ARG safely
So I'm working on making a large online puzzle for an ARG (however I can't specify too much as it'd spoil parts of it). I kinda am in love with the idea of having part of the ARG require using an ssh client (e.g. putty) to access a "server" to discover specific bits of lore or progress in the ARG. However I don't want them to be able to cause too much damage if someone decides to break it (e.g. if I were to use an actual ssh server). I've seen some programs for server honeypots that don't have persistent storage so I'm pretty sure it's possible but:
Is it possible to use the ssh protocol to communicate input data to a program which emulates a ssh terminal on the ssh port, while also having a safeguards in place so the user can't break out of the emulator?
If so are there existing packages in order to do this or would this have to be purpose-programmed for this specific application?
I can probably work on this myself (this isn't urgent or anything) but I don't know if it's possible to make something that listens on the ssh port and handles the secure connection properly. Part of the ARG can be a secure username & password so that bot traffic gets filtered out, and I am fine if the only commands emulated are cd, ls, and ssh!
(also I do plan on deleting this post after like a couple of weeks or so that players are less likely to find it once they come across this part of the puzzle)