Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Why does Capistrano require the public key?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Paul Dowman  
View profile  
 More options Apr 12 2008, 10:07 am
From: "Paul Dowman" <li...@pauldowman.com>
Date: Sat, 12 Apr 2008 10:07:33 -0400
Local: Sat, Apr 12 2008 10:07 am
Subject: Why does Capistrano require the public key?
Hi, there's something that's been confusing me for a long time. When
connecting using public/private key authentication the client
shouldn't need to have the public key available, but for some reason
Capistrano (Net:SSH?) seems to require it.

The openssh client can connect without having the public key file
available, e.g. "ssh -i privkeyfile hostname" (where  privkeyfile is a
private key). But Capistrano complains if there isn't also a file
named "privkeyfile.pub" (containing the public key) in the same
directory.

Am I doing something wrong? Is there a way to change this so that the
public key isn't required?

Thanks,
Paul


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jamis Buck  
View profile  
 More options Apr 12 2008, 10:39 am
From: Jamis Buck <ja...@37signals.com>
Date: Sat, 12 Apr 2008 08:39:06 -0600
Local: Sat, Apr 12 2008 10:39 am
Subject: Re: [Capistrano] Why does Capistrano require the public key?

It's a quirk of Net::SSH that has never been patched. If anyone wants  
to take a look and fix it, that'd be great. The problem might already  
be fixed in Net::SSH v2 (due to be released in the near future), but I  
haven't had a chance to verify.

- Jamis

On Apr 12, 2008, at 8:07 AM, Paul Dowman wrote:

  smime.p7s
3K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Dowman  
View profile  
 More options Apr 14 2008, 10:02 am
From: "Paul Dowman" <li...@pauldowman.com>
Date: Mon, 14 Apr 2008 10:02:16 -0400
Local: Mon, Apr 14 2008 10:02 am
Subject: Re: [Capistrano] Re: Why does Capistrano require the public key?
I'd be willing to take a crack at it if you can point me in the right
direction and if it's not fixed in v2.

Paul

--
http://pauldowman.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jamis Buck  
View profile  
 More options Apr 14 2008, 11:12 am
From: Jamis Buck <ja...@37signals.com>
Date: Mon, 14 Apr 2008 09:12:10 -0600
Local: Mon, Apr 14 2008 11:12 am
Subject: Re: [Capistrano] Re: Why does Capistrano require the public key?

You could maybe start here:

   http://github.com/jamis/net-ssh/tree/master/lib/net/ssh/
key_factory.rb

And search the code for places KeyFactory is used, to determine when/
where public keys are being used where private keys would do.

- Jamis

On Apr 14, 2008, at 8:02 AM, Paul Dowman wrote:

  smime.p7s
3K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Masover  
View profile  
 More options Apr 14 2008, 12:48 pm
From: "David Masover" <d...@3mix.com>
Date: Mon, 14 Apr 2008 11:48:39 -0500
Local: Mon, Apr 14 2008 12:48 pm
Subject: Re: [Capistrano] Re: Why does Capistrano require the public key?

I know that various ssh utilities can generate a public key from a private
one -- I don't know the specifics, but I know that:

ssh-add /some/private/key
ssh-copy-id account_I_only_have_password_access...@some.host

The fact that this works, even if I don't currently have a public key file
available, proves that the ssh private key format, at least, contains the
information necessary to generate a public key. Therefore, I would think
that a quick fix might be to find out how ssh does that, and simply generate
a public key when needed.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Dowman  
View profile  
 More options Apr 15 2008, 8:12 am
From: "Paul Dowman" <li...@pauldowman.com>
Date: Tue, 15 Apr 2008 08:12:46 -0400
Local: Tues, Apr 15 2008 8:12 am
Subject: Re: [Capistrano] Re: Why does Capistrano require the public key?
Great, thanks. I'll try to take a look at it when I get a spare few
minutes, probably this weekend.

Paul

--
http://pauldowman.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jacob Atzen  
View profile  
 More options Apr 16 2008, 3:04 am
From: Jacob Atzen <ja...@jacobatzen.dk>
Date: Wed, 16 Apr 2008 09:04:50 +0200
Local: Wed, Apr 16 2008 3:04 am
Subject: Re: [Capistrano] Re: Why does Capistrano require the public key?

On 14/04/2008, at 18.48, David Masover wrote:

> I know that various ssh utilities can generate a public key from a  
> private one -- I don't know the specifics, but I know that:

> ssh-add /some/private/key
> ssh-copy-id account_I_only_have_password_access...@some.host

> The fact that this works, even if I don't currently have a public  
> key file available, proves that the ssh private key format, at  
> least, contains the information necessary to generate a public key.  
> Therefore, I would think that a quick fix might be to find out how  
> ssh does that, and simply generate a public key when needed.

 From the man-page of ssh-keygen of OpenSSH:

      -y      This option will read a private OpenSSH format file and  
print
              an OpenSSH public key to stdout.

You will need to supply the private key password to load it.

--
Cheers,
- Jacob Atzen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »