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 msg:914900 4:52 pm on Sep 18, 2002 (gmt 0) 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
EliteWeb msg:914901 4:58 pm on Sep 18, 2002 (gmt 0)
Have you given them shell accounts also? Do you want them having ssh/telnet access? transistor msg:914902 9:16 pm on Sep 18, 2002 (gmt 0)
Hello EliteWeb, no I haven't given them shell accounts yet. And I wouldn't want them to ssh / telnet. Why? David msg:914903 6:19 pm on Sep 19, 2002 (gmt 0)
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.
transistor msg:914904 6:25 pm on Sep 20, 2002 (gmt 0)
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 :)
David msg:914905 6:41 pm on Sep 20, 2002 (gmt 0)
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.