Upload Facility

(Server) SFTP Chroot for Incoming

root@host: mkdir -p /home/dhl/upload/incoming
root@host: chown dhl:dhl /home/dhl/upload/incoming
root@host: chown root:root /home/dhl

/etc/ssh/sshd_config

Match user dhl
    ChrootDirectory /home/dhl/upload
    #AuthorizedKeysFile  /home/dhl/.ssh/authorized_keys
    ForceCommand internal-sftp
    AllowTCPForwarding no
    X11Forwarding no

/home/dhl/bin/import-packages.sh

(Client) dput

Used on the PC who wants to upload packages

apt-get install dput

~/.dput.cf

[your-server-focal]
fqdn = apt.your-server.de
# With different SSH port
#fqdn = apt.your-server.de:35007
incoming = /incoming/focal
method = sftp
login = dhl
allow_unsigned_uploads = 1
progress_indicator = 2
# Allow uploads for UNRELEASED packages
allowed_distributions = .*

Now you can upload packages with dput

dput your-server-focal example_0.1-1.changes

(Client) Optional

You can also just upload a .deb file with FileZilla or similar tools
into the appropriate incoming folder