ssh-dummy-shell — Ultimately restricted shell
ssh-dummy-shell is used to provide access to systems where only file transfer functionality is permitted. Users with file-transfer-only access can have ssh-dummy-shell as their user shell. When executed without any parameters, the program waits for the user to press any key and exit. The only way to execute programs with ssh-dummy-shell is to give them as command-line parameters with the
-c option. Even then, sft-server-g3 is the only allowed command.
The parameter is executed as a shell command. Only the sftp-server command is allowed. Any other command causes ssh-dummy-shell to exit immediately.
ssh-dummy-shell returns the return value of the given command. If no command is given, 0 will be returned on exit.