I would like to restrict my users to two uses of ssh: running a particular script, say /usr/local/bin/myscript.sh and regular sftp. Using ForceCommand in /etc/sshd_config seems to restrict me to only one: I can either of:
ForceCommand /usr/local/bin/myscript.sh
ForceCommand internal-sftp
either works great, but I would like to enable them both. If both lines are included, it parses the first and ignores the second. Is there any way allow both commands?
Also, I'm on a production server with LTS, so am limited to openssh 4.7. If this problem is only solvable in a newer version of openssh, which version would I need?
Thanks, all.
Bookmarks