launchpad and ubuntu

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

launchpad and ubuntu

Paul Sutton
Hi

Just rejoined the list with a different e-mail address

I am trying (and failing) to set up bzr and launchpad properly.

So far I have created a ssh keypair
uploaded this to the website (copy and paste public key in to the box on
the launchpad website page for this)

as per

https://help.launchpad.net/YourAccount/CreatingAnSSHKeyPair

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
IdentityFile ~/.ssh/id_rsa_launchpad
psutton@zleap:~/.ssh$

I don't know the correct host to use (so I have guessed)

I am trying to upload a test file to make sure everything works

bzr push lp:~zleap/+junk/test from inside a test director for this.

This gives

Permission denied (publickey).
ConnectionReset reading response for 'BzrDir.open_2.1', retrying
Permission denied (publickey).
bzr: ERROR: Connection closed: Unexpected end of message. Please check
connectivity and permissions, and report a bug if problems persist.
psutton@zleap:~/Documents/Development/bazaar/test$

What have I done wrong here please ?

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)

Again these erros seem to assume that the end user knows what to set
file access permissions to.

Sorry if this is not the right place to ask, but I am not sure where to
ask. However I am sure there are some developers on here who may be able
to help or point me in the right direction.

Thanks for any help

Paul Sutton



--
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/

signature.asc (916 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: launchpad and ubuntu

Colin Watson
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                                       [[hidden email]]

--
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/