7
3
I'd like to configure a linux box (probably an Ubuntu server) so that I can setup users, so that it is possible to upload/download files via rsync/scp/sftp, but it should not be possible to ssh to the machine and get an interactive terminal.
Is this possible? How would I go about configuring that? I know that all I'll need the ssh server to be ON, for rsync/scp/sftp to work, but I guess there should be a way to prevent the direct login.
I don't think that's possible coz you need a username and pass to use rsync, whoever has the username and pass can login, even if you create an ssh key just for rsync, won't work, would love to be proven wrong though – Lynob – 2013-09-05T09:29:40.737
It's possible to allow only SFTP with Match User ... / ForceCommand Internal-sftp in
sshd_config
. But to allow several programs i can't help. – mveroone – 2013-09-05T09:36:24.823You need a chroot jail, SourceForge implements a very good one but I can't find documentation on it. – justbrowsing – 2013-09-05T09:54:14.013