I was wondering how others go about using a server for only file transfer purposes such as rsync, scp, and sftp? I see that bridges at PSC does this (https://www.psc.edu/bridges/user-guide/transferring-files). If you try to ssh to the server, you get a message stating that this is only to be used for file transfer purposes.
I saw a couple of options such as rssh, but that seems like it is not maintained anymore and could be a security risk. Another option is to use a sftp jail, but I don’t believe that allows you to use rsync and it still allows you to ssh, but just restricting what directories you see.
so you need something that will convert login shell to the scponly shell for users at or above your minimum, end-user UID on the machines that would offer it.
Thank you. I went with this option even though it seems to be a stale project, but maybe that is just because it has very few security implications.
For others that may came across this. We are using SSSD for authentication and added the following line to the [nss] section to make sure everybody is using the scponly shell.