Hello, with a small configuration in the sftp.conf file it is possible to configure the "wordpress" folder as the default folder after the user logs in.
cat >> /etc/ssh/sshd_config.d/sftp.conf <<EOF
# SSH config for SFTP only user
Match User sftp
ChrootDirectory /var/www
ForceCommand internal-sftp -u 002 -d /wordpress
PasswordAuthentication yes
X11Forwarding no
AllowTcpForwarding no
AllowAgentForwarding no
PermitTunnel no
EOF
changing to subfolder in sftp.conf
Hello, with a small configuration in the sftp.conf file it is possible to configure the "wordpress" folder as the default folder after the user logs in.
I hope this helps.