Hi, I already checked this issue. With PuttyGen there is a way to transform a putty ssh key to openssh format. This is much simpler than the way found by Ben Munat. But again I will crosscheck everything again. Strange is that while using the private key with pageant everything works and while using it with capistrano/net-ssh directly it won´t.
Feurio On 27 Jun., 19:53, Ben Munat <[EMAIL PROTECTED]> wrote: > I remember having a problems getting a putty-generated key working... it's > been a while though. > > Well, poking around in the googles turns up this: > > http://www.stevekallestad.com/blog/using_putty_ssh_keys_to_authentica... > > Note that he talks about converting a putty generated public key to an open > ssh public key. > > Hope this helps! > > Ben > > Jamis Buck wrote: > > Strange. Looking at the code, you'd see the behavior you're seeing if > > (1) the file in question is not readable by Capistrano for some reason > > (permissions, etc.), or (2) if the key is not actually being added to > > the Net::SSH key manager for some reason. > > > I can't duplicate the problem here. Has anyone else seen this behavior? > > > - Jamis > > > On 6/27/07, Feurio <[EMAIL PROTECTED]> wrote: > >> It is a SSH-2 RSA key generated with Putty Key Generator. > > >> Feurio > > >> On 27 Jun., 18:17, "Jamis Buck" <[EMAIL PROTECTED]> wrote: > >>> What kind of key is it? DSS? RSA? Note that Net::SSH does not support > >>> RSA1 keys, so you need to make sure it is either DSS or RSA. > > >>> - Jamis > > >>> On 6/27/07, Feurio <[EMAIL PROTECTED]> wrote: > > >>>> Hi Jamis, > >>>> c:/ is the directory and test_neu is the filename. > >>>> Actually the filename is test_neu.pub > >>>> But I left the .pub because capistrano seems to add it automatically. > >>>> Feurio > >>>> On 27 Jun., 16:08, "Jamis Buck" <[EMAIL PROTECTED]> wrote: > >>>>> Is c:/test_neu a directory containing your keys, or is it a key file > >>>>> itself? Note that the :keys option must point to an array of actual > >>>>> key filenames, and not just a directory where they exist. > >>>>> - Jamis > >>>>> On 6/27/07, Feurio <[EMAIL PROTECTED]> wrote: > >>>>>> Hello, > >>>>>> I do have a problem with doing authentification via public/private key > >>>>>> files and the ssh_options[:keys] in the capfile. > >>>>>> My environment: > >>>>>> Windows XP SP2 on the client side > >>>>>> capistrano 1.4.1 (cause I cannot install cap 2 because of streaming > >>>>>> buffer error) > >>>>>> net-ssh 1.1.2 > >>>>>> SSH-1.99-OpenSSH_3.6.1p2 (on the server side) > >>>>>> Everything works if I use pagent for managing my private key file!!! > >>>>>> But if I want to work without pagent and only with the options in the > >>>>>> cap (deploy.rb)-File it won' t accept the private key. > >>>>>> In my cap-file I have: > >>>>>> ssh_options[:keys] = %w(C:/test_neu) > >>>>>> After switching ssh debugging on I get the following: > >>>>>> ... > >>>>>> [DEBUG] Wed Jun 27 12:19:49 +0200 2007 -- transport.session: got > >>>>>> packet of type 33 > >>>>>> [DEBUG] Wed Jun 27 12:19:49 +0200 2007 -- transport.session: sending > >>>>>> message >>"\025"<< > >>>>>> [DEBUG] Wed Jun 27 12:19:49 +0200 2007 -- transport.session: waiting > >>>>>> for packet from server... > >>>>>> [DEBUG] Wed Jun 27 12:19:49 +0200 2007 -- > >>>>>> transport.incoming_packet_stream: reading 8 bytes from socket... > >>>>>> [DEBUG] Wed Jun 27 12:19:49 +0200 2007 -- > >>>>>> transport.incoming_packet_stream: packet length(12) remaining(8) > >>>>>> [DEBUG] Wed Jun 27 12:19:49 +0200 2007 -- > >>>>>> transport.incoming_packet_stream: received: "\025" > >>>>>> [DEBUG] Wed Jun 27 12:19:49 +0200 2007 -- transport.session: got > >>>>>> packet of type 21 > >>>>>> [DEBUG] Wed Jun 27 12:19:49 +0200 2007 -- transport.session: sending > >>>>>> message >>"\005\000\000\000\fssh-userauth"<< > >>>>>> [DEBUG] Wed Jun 27 12:19:49 +0200 2007 -- transport.session: waiting > >>>>>> for packet from server... > >>>>>> [DEBUG] Wed Jun 27 12:19:49 +0200 2007 -- > >>>>>> transport.incoming_packet_stream: reading 8 bytes from socket... > >>>>>> [DEBUG] Wed Jun 27 12:19:49 +0200 2007 -- > >>>>>> transport.incoming_packet_stream: packet length(28) remaining(24) > >>>>>> [DEBUG] Wed Jun 27 12:19:49 +0200 2007 -- > >>>>>> transport.incoming_packet_stream: received: "\006\000\000\000\fssh- > >>>>>> userauth" > >>>>>> [DEBUG] Wed Jun 27 12:19:49 +0200 2007 -- transport.session: got > >>>>>> packet of type 6 > >>>>>> [DEBUG] Wed Jun 27 12:19:49 +0200 2007 -- userauth.driver: trying > >>>>>> "publickey" > >>>>>> [DEBUG] Wed Jun 27 12:19:49 +0200 2007 -- userauth.driver: trying > >>>>>> "hostbased" > >>>>>> [DEBUG] Wed Jun 27 12:19:49 +0200 2007 -- userauth.driver: all > >>>>>> authorization methods failed > >>>>>> Password: --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
