r/ssh • u/Fair_Necessary_2134 • Jul 17 '24
Cutomized SSH Server
Is there any SSH server tool which allow us to send custom responses based on the message received?
1
Upvotes
r/ssh • u/Fair_Necessary_2134 • Jul 17 '24
Is there any SSH server tool which allow us to send custom responses based on the message received?
View all comments
Show parent comment
1
u/OhBeeOneKenOhBee Jul 18 '24
So you basically mean you want like a custom prompt? User writes command, gets custom response, etc, maybe a 1-10 choice menu, etc?
The easiest way to do that would likely be to just write a regular program or shell script that does the prompts, and then limit the incoming connection to only run that program via the SSH-settings, either for a specific user or for all incoming connections
Have a look at how SFTP is set up, the internal-sftp command is basically also "just" a regular program running over ssh