Transfert photos from iPhone to SFTP server

$ ssh-keygen -C "PhotoSync access key" -t ed25519 -f ~/.ssh/photosync

# groupadd -g 4010 photosync
# usermod -G photosync ptijo
# useradd -m -c "PhotoSync Joel Carnat" -d /home/photosync/ptijo -g photosync -s /sbin/nologin -u 4000 $(date | sha512 | cut -c 1-14)
# chmod 0770 /home/photosync/ptijo
# install -D -g photosync -m 0644 -o d645a1022127e9 ~ptijo/.ssh/photosync.pub ~d645a1022127e9/.ssh/authorized_keys

# /etc/ssh/sshd_config
# rcctl reload sshd

!!!! Authentication refused: bad ownership or modes for directory /home/ptijo/Uploads/PhotoSync !!!! Refaire avec /home/PhotoSync/$USER

In PhotoSync, create a new FTP connection. Configure SFTP. Transfert and select the SSH private keys. Configure Hostname, login and target directory.