How to configure sftp keys

Asked by Rainer Glaschick

Using sftp, I would like to use my private keys to access via ssh without entering a password.
How do I confiugre tortoise bzr to find these?

Question information

Language:
English Edit question
Status:
Solved
For:
TortoiseBZR Edit question
Assignee:
No assignee Edit question
Solved by:
Alexander Belchenko
Solved:
Last query:
Last reply:
Revision history for this message
Rainer Glaschick (rainer-glaschick-pb) said :
#1

Using tortoise bzr 0.2r2 on Windows XP with bazaar 1.11

Sorry to miss this

Revision history for this message
Rainer Glaschick (rainer-glaschick-pb) said :
#2

Location would be %USERPROFILE%/bazar/2.0, where I found ssh_host_keys, and where authentication.conf can be created for password-based authentication, see http://doc.bazaar-vcs.org/latest/developers/authentication-ring.html

Deposit a key under the name of "ssh_rsa" seems not to work.

Revision history for this message
Rainer Glaschick (rainer-glaschick-pb) said :
#3
Revision history for this message
Best Alexander Belchenko (bialix) said :
#4

Use pageant utility from PuTTY distribution package.

Revision history for this message
Rainer Glaschick (rainer-glaschick-pb) said :
#5

Thanks Alexander Belchenko, that solved my question.

Revision history for this message
Donal Lafferty (donal-lafferty) said :
#6

Thanks Alexander Belchenko, that solved my question, too!

BTW, d'you know where I can get background details on pageant? I'm interested to know how it intercepts ssh authentication requests.

Revision history for this message
Alexander Belchenko (bialix) said :
#7

I'm not sure is there available some documentation on official Putty site.

But you can get the algorithm from python paramiko sources:
http://bazaar.launchpad.net/~robey/paramiko/trunk/annotate/head%3A/paramiko/win_pageant.py

Revision history for this message
John A Meinel (jameinel) said :
#8

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

dlafferty wrote:
> Question #74812 on TortoiseBZR changed:
> https://answers.launchpad.net/tortoisebzr/+question/74812
>
> dlafferty posted a new comment:
> Thanks Alexander Belchenko, that solved my question, too!
>
> BTW, d'you know where I can get background details on pageant? I'm
> interested to know how it intercepts ssh authentication requests.
>

It doesn't intercept them. Our sftp client implementation requests
authentication, and tries to use publickey authentication. It knows how
to query pageant for the list of known keys, and tries to authenticate
with them.

As Alexander noted, some of the work is in paramiko, and the controlling
code is generally here:
http://bazaar.launchpad.net/~bzr-pqm/bzr/bzr.dev/annotate/head%3A/bzrlib/transport/ssh.py

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAksmU30ACgkQJdeBCYSNAAMHBACguj2F6wfMWClgnCVVEUuO9zh1
vsoAn1mMBoDBAaOunHyrQTE8KtPvYjs4
=G0rg
-----END PGP SIGNATURE-----