2022-01-28

Tiny Core Linux - sftp

 

/usr/local/etc/ssh/sshd_config

Match User ftp1

        ChrootDirectory /ftp

        X11Forwarding no

        AllowTcpForwarding no

        ForceCommand internal-sftp 


/etc/passwd
ftp1:x:1000:1000:Linux User,,,:/upload:/bin/false


drwxr-xr-x 3 root root 60 Jan 28 11:02 /ftp
drwxrwxr-x 2 root ftp1 60 Jan 28 11:03 /ftp/upload