Hello all,

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)?
or:
- 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:
Code:
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,
Regards