Try it like I did mine?
-- Lee Hambley

Twitter: @leehambley
Blog: http://lee.hambley.name/
Working with Rails: http://is.gd/1s5W1


2009/8/20 will <[email protected]>

>
> I specified it like so
>
>  IdentityFile ~/.ssh/id_rsa
>
> in .ssh/config but I am still getting the same error
>
> On Aug 20, 11:10 am, Lee Hambley <[email protected]> wrote:
> > Will,
> > Try not defining the key in your Ruby code, but instead in ~/.ssh/config
> > (it's more useful in there anyway, and Cap (well, Net::SSH) honours that)
> >
> > Let us know?
> >
> > -- Lee Hambley
> >
> > Twitter: @leehambley
> > Blog:http://lee.hambley.name/
> > Working with Rails:http://is.gd/1s5W1
> >
> > 2009/8/20 will <[email protected]>
> >
> >
> >
> > > Any ideas? Its driving me insane, I just can't understand why it would
> > > would in IRB and ssh client using the same key but not in Capistrano
> >
> > > On Aug 19, 11:13 am, will <[email protected]> wrote:
> > > > Yeah my mistake I defined the Public key after messing around with
> it,
> > > > if I specify the private key though I get the following
> >
> > > >  ** [server1 :: out] Error reading response length from
> authentication
> > > > socket.
> > > >  ** [server1 :: out] Error reading response length from
> authentication
> > > > socket.
> > > >  ** [server1 :: out] Error reading response length from
> authentication
> > > > socket.
> > > >  ** [server1:: out] Permission denied (publickey).
> > > >  ** [server1 :: out] fatal: The remote end hung up unexpectedly
> > > >  ** [server1 :: out] Permission denied (publickey).
> > > >  ** [server1 :: out] fatal: The remote end hung up unexpectedly
> > > >  ** [server :: out] Permission denied (publickey).
> > > >  ** [server :: out] fatal: The remote end hung up unexpectedly
> >
> > > > I specify the key in deploy.rb like so
> >
> > > > ssh_options[:keys] = %w(/Users/user/.ssh/id_rsa)
> >
> > > > Thanks
> >
> > > > On Aug 18, 8:13 pm, Jonathan Weiss <[email protected]> wrote:
> >
> > > > > > (OpenSSL::PKey::PKeyError: not a private key (/Users/user/.ssh/
> > > > > > id_rsa.pub))
> >
> > > > > How do you define the ssh_keys in deploy.rb? You only need to point
> to
> > > > > the private key, not the public key.
> >
> > > > > Jonathan
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.co.uk/group/capistrano?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to