How to enable user to allow scp with no login


#1

I have chrooted directory in home with multiple user, some user should allow use sftp via key authentication but I want to enable PasswordAuthentication for particular user with SCP access

Could you please help anyone to achieve this

my configuration below

Match Group sftp
PasswordAuthentication yes
ChrootDirectory /srv/sftponly
AllowTCPForwarding no
X11Forwarding no
ForceCommand internal-sftp

cat /etc/passwd
testuser:x:1003:1003::/home/testuser:/bin/false

cat /etc/group
sftp:x:1003: