Welcome to WebmasterWorld Guest from 184.108.40.206 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
SFTP on OpenBSD transistor
How can restrain users to their home directories or possibly other directories when using SFTP? I know that using /etc/ftpchroot I can keep them using regular FTP, but it does't seem to work the same with SFTP. Thanks
Have you given them shell accounts also? Do you want them having ssh/telnet access? transistor
Hello EliteWeb, no I haven't given them shell accounts yet. And I wouldn't want them to ssh / telnet. Why? David
ssh2 has a config option to chroot by user. I have never used it but am looking at it now.
How are you able to only give sftp with out ssh? Is there a seperate server that you start?
When I start sshd I get ssh scp and sftp.
Hello David, Yes, ssh2 has something that looks like ftpchroot, but I can't figure out how to make it work.
I haven't restricted users to only sftp, but I would like to do that.
Please let me know I you find how to use the chroot by user. I will if I can figure it out :)
The config line to jail them is..
it goes in the sshd_config file
The problem is Open ssh does not seem to support it. When I try the server will not restart. So it looks like you have to be running SSH2. Let us know if you get something working.
I don't think you can just give them sftp.