Friday 17 November 2023

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

Hello,

Thank up Simon for providing useful information.
Regarding FTP uploads, the flakiness issues should now be resolved. 
The usual `dput` upload should now work as per usual.

On Fri, Nov 17, 2023 at 3:04 PM Simon Quigley <simon@tsimonq2.net> wrote:
Hello,

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
`ubuntu`
  - Instead of e.g. `dput ppa:lubuntu-dev/backports-staging
your_source.changes`, use `dput ssh-ppa:lubuntu-dev/backports-staging
your_source.changes`
  - 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:

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

[ssh-ubuntu]
fqdn                    = upload.ubuntu.com
method                  = sftp
incoming                = /ubuntu
login                   = *

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

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

--
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel