Hello,
I would like to transfer files over SFTP and SCP, I made my custom scripts for that and they work great. But I don't want the users who transfer the files to have access to the bash and I like them to be jailed in a specific (I prefer their home) directory. I googled a bit and found that this is possible with the default openssh server. I used this tutorial: http://blog.swiftbyte.com/linux/allowing-sftp-access-while-chrooting-the-user-and-denying-shell-access/
It works great, but only for SFTP. I cannot access files over SCP. Is there a way to make them accessable over openssh for SCP too?
Then I found rssh, it works great for SFTP and SCP as well, but the user can still access files which are located in /etc/ for example. I know that there is the way of jail them with CHroot. But it looks very difficult and I'm new with Linux. So Is there an easy way to solve my problem?
Thank you in advance!
I would like to transfer files over SFTP and SCP, I made my custom scripts for that and they work great. But I don't want the users who transfer the files to have access to the bash and I like them to be jailed in a specific (I prefer their home) directory. I googled a bit and found that this is possible with the default openssh server. I used this tutorial: http://blog.swiftbyte.com/linux/allowing-sftp-access-while-chrooting-the-user-and-denying-shell-access/
It works great, but only for SFTP. I cannot access files over SCP. Is there a way to make them accessable over openssh for SCP too?
Then I found rssh, it works great for SFTP and SCP as well, but the user can still access files which are located in /etc/ for example. I know that there is the way of jail them with CHroot. But it looks very difficult and I'm new with Linux. So Is there an easy way to solve my problem?
Thank you in advance!