[PSA] When uploading to Ubuntu, use SSH, not FTP

Simon Quigley simon at tsimonq2.net
Wed Nov 15 17:57:13 UTC 2023


There is currently some slight flakiness with the FTP server accepting uploads, 
for both PPAs and upload.ubuntu.com. The Launchpad team indicated on IRC that 
they're looking into it.

That being said, those issues don't currently affect SSH uploads. It's generally 
a good idea to do SSH-based uploads regardless:
  - Instead of `dput ubuntu your_source.changes`, try `ssh-ubuntu` in place of 
  - Instead of e.g. `dput ppa:lubuntu-dev/backports-staging 
your_source.changes`, use `dput ssh-ppa:lubuntu-dev/backports-staging 
  - Also, if you're a DD, try `ssh-upload` instead of `ftp-master` or `ftp-eu`

Note, your SSH key has to be in Launchpad for this to work, and you may need to 
manually specify your Launchpad username in the configuration if it's different 
from your machine username.

Here's some example config stanzas, for your /etc/dput.cf:

login                   = tsimonq2
fqdn                    = ssh.upload.debian.org
method                  = scp
incoming                = /srv/upload.debian.org/UploadQueue/
allow_dcut              = 1
allowed_distributions   = (?!UNRELEASED|.*-security)

fqdn                    = upload.ubuntu.com
method                  = sftp
incoming                = /ubuntu
login                   = *

fqdn                    = ppa.launchpad.net
method                  = sftp
incoming                = ~%(ssh-ppa)s
login                   = *

I hope this helps,
Simon Quigley
simon at tsimonq2.net
tsimonq2 on LiberaChat and OFTC
@tsimonq2:linuxdelta.com on Matrix
5C7A BEA2 0F86 3045 9CC8
C8B5 E27F 2CF8 458C 2FA4

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20231115/5ba938a6/attachment.sig>

More information about the ubuntu-devel mailing list