New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Having trouble with rssh
VPS_Unlimited
Member
in Help
Hello,
I am currently looking to deploy a backupserver to which I want to add users that will be able to access the server via sftp and are restricted by rssh. However I do want to allow them to use rsync to remotely backup their data from their vps to the backup server. Following various guides and tutorials (mainly from cyberciti) it still just wont work. I have installed vestacp in order to add new users and within vestacp I restrict them to the rssh shell. In rssh config file I have allowed rsync yet when I try to rsync from a vps to the backupserver using that testuser with rssh applied rsync wont work.
Any ideas?
Comments
Does rsync work for root/users with default shell?
Have you tried an SSH chroot?
@linuxthefish
rsync works perfectly fine when i use normal users or root users.
@FlamesRunner
I was gonna..maybe i will try it if this doesnt work :P
Just copy the libraries the rssh shell requires into a separate directory and set it up from there
Good idea! Will try that
Make sure you add the following in your SSH config:
That should confine users to their home directories, but you still need to copy over the libraries.
Make sure you copy over the required libraries -- you can find them by doing "ldd /path/to/rssh/executable".
Let me know if you need anything else
Everything works fine now, thanks