How can I use publickey authentication method?

Asked by Imre László

Hello!

I have a Debian-based server, and the only way to log on it is auth with publickey.
How can I connect to this server with Bazaar? Is it possible?
I have a key file of course.

OS: WinXP SP3

------
bzr: ERROR: Connection error: Unable to authenticate to SSH host as
  <email address hidden>
supported auth types: ['publickey']
-----

Many thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
Vincent Ladeuil
Solved:
Last query:
Last reply:
Revision history for this message
Best Vincent Ladeuil (vila) said :
#1

If you can connect with an ssh client to this host, you can connect with bazaar too.

Required steps involve:
- adding your public key to the ~/.shh/authorized_keys on the server, in the <username> home directoryy
- make sure <username> is used when attempting the connection,
- your client may need to add the server key in ~/.ssh/known_hosts (or its windows equivalent)

Using 'ssh -v <email address hidden>' is how I debug such setups on unices.

https://help.launchpad.net/YourAccount/CreatingAnSSHKeyPair also mentions some useful windows tips (just replace bazaar.launchpad.net by domain.tld).

Revision history for this message
Imre László (imre-laszlo) said :
#2

My sysadmin gave me a key file (*.ppk).
In Putty, I need to select it under SSH/Auth/Private key for authentication menu.
So, how can I copy this file to work with Bazaar? Or it isn't possible?

Thanks!

Revision history for this message
Imre László (imre-laszlo) said :
#3

This was the step I missed:

Step 6: Run/Install Pageant as either a standalone .exe or as part of the entire putty package. Make sure Pageant is running and rt+click the icon in the notification area. Add the private key you saved earlier. This step is crucial if you want to connect to launchpad from a Windows PC.

Now it works! Many thanks Vincent!

Revision history for this message
Imre László (imre-laszlo) said :
#4

Thanks Vincent Ladeuil, that solved my question.