Results 1 to 1 of 1
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Aug 2013
Configuring ssh and sftp (limited to a folder)
I would like to configure ssh and sftp on a linux server.
My question is:
- Is it possible to create a user that can ssh and sftp (with both or only sftp limited to a folder)?
- Is it possible to create a user account with an access limited to a directory (in that case, i'm not talking about remote connection) ?
I tried to modify /etc/ssh/sshd_config:
PermitRootLogin no # override default of no subsystems SubSystem sftp internal-sftp Match User sftp_user # The following two directives force sftp_user to become chrooted # and only have sftp available. No other chroot setup is required. ChrootDirectory /home/tftp_dir ForceCommand internal-sftp # For additional paranoia, disallow all types of port forwardings. AllowTcpForwarding no GatewayPorts no X11Forwarding no
but for that user ssh is no possible.
I would like to have ssh and sftp... (with both or only sftp limited to a folder)
Thanks in advance,