You are not logged in.
Pages: 1
I'd like to grant a user to use sftp on my PC. I installed openssh and it works fine, but when I want this user to be chrooted, it doesn't work. I googled for severeal hours and tried everything in vain.
sshd_conf:
Subsystem sftp internal-sftp
Match User feltolt
ChrootDirectory /home/feltolt
ForceCommand internal-sftpA try:
[siriusb@arch home]$ sftp feltolt@localhost
Password:
Connected to localhost.
sftp> ls
remote readdir("/"): Permission denied
sftp> exitThe user:
feltolt:x:1002:1002:feltolt,,,,:/home/feltolt:/bin/bashdrwx------ 2 root feltolt 4096 jul 2 13.39 feltoltSo how could I jail this user into its home dir?
Offline
You are missing a dot in the passwd entry. See for example section 1.3 here http://www.howtoforge.com/chroot_ssh_sftp_fedora7
You need to install an RTFM interface.
Offline
You can't create a directory named "."
Offline
Pages: 1