[ubuntu-uk] launchpad and ubuntu

Colin Watson cjwatson at ubuntu.com
Fri Dec 21 20:41:34 UTC 2018


On Fri, Dec 21, 2018 at 06:30:41PM +0000, Paul Sutton wrote:
> However this section appears to provide no guidance as to what to type
> in the .ssh/CONFIG file
> 
> " Note You need to upload the .pub file to Launchpad, and to specify the
> private-key file (with no .pub) in the SSH configuration. "
> 
> However from doing something like this before I added
> 
> Host launchpad.net

This should be "Host *.launchpad.net".  (In the bzr case, it's
bazaar.launchpad.net, but git.launchpad.net and ppa.launchpad.net also
exist and use the same database of public keys.)

> I was also told by ssh-add that the permissions were wrong, (default
> permissions for files are 755) I set to 400 ( chmod 400 id_rsa_launchpad
> ) which should give the private key read only access to user)

ssh-keygen creates key files with the right permissions to start with,
so I'm not sure how you managed this.  Normally the private key is mode
600 and the public key is mode 644.

The default permissions for files are 644 rather than 755, unless you're
on an unusual filesystem.  (755 indicates executability, so programs and
directories would have that but not regular data files.)

-- 
Colin Watson                                       [cjwatson at ubuntu.com]



More information about the ubuntu-uk mailing list