How can I run/tweak this command and while using ForceCommand to give this user their shell?
(cat ./sudoPassword ./someCommandInput) | ssh user@ip "sudo -Sp '' someCommand"
The behind the scenes restriction is that ForceCommand needs to be the mechanism that gives this user a shell, in addition to the command above a typical
ssh user@ip needs to work too.
I have tried various configurations such as
ForceCommand /bin/bash -ic $SSH_ORIGINAL_COMMAND ls ForceCommand /bin/bash -s < $SSH_ORIGINAL_COMMAND ForceCommand /bin/bash -c $SSH_ORIGINAL_COMMAND
I've also tried messing around with the client command, giving ssh options like -tt but I can't seem to find the right configuration.