Posts

       106 words, 1 minutes

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 !

Continue reading...


11 / 11