greghauptmann
2010-Feb-23 01:04 UTC
capistrano still asks for the 1st password even though I''ve set up an ssh key???
Hi, Background: I''ve setup an ssh key to avoid having to use passwords with capistrano per http://www.picky-ricky.com/2009/01/ssh-keys-with-capistrano.html. A basic ssh to my server does work fine without asking for passwords. I''m using "dreamhost.com" for hosting. Issue - When I run ''cap deploy'' I still get asked for the 1st password (even through the previous 2nd and 3rd password requests are now automated). It is the capistrano command that start with "git clone - q ssh:....." for which the password is being requested. Question - Is there something I''ve missed? How can I get "cap deploy" totally passwordless? Some excerts from config/deploy.rb are: ==========set :use_sudo, false ssh_options[:keys] = [File.join(ENV["HOME"], ".ssh", "id_rsa")] default_run_options[:pty] = true =========== thanks -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
TomRossi7
2010-Feb-23 14:14 UTC
Re: capistrano still asks for the 1st password even though I''ve set up an ssh key???
Greg, Where is your repository? I wonder if your key is getting you into your shell and then it is prompting for your password to access the repo? --Tom On Feb 22, 8:04 pm, greghauptmann <greg.hauptm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > Background: I''ve setup an ssh key to avoid having to use passwords > with capistrano perhttp://www.picky-ricky.com/2009/01/ssh-keys-with-capistrano.html. > A basic ssh to my server does work fine without asking for passwords. > I''m using "dreamhost.com" for hosting. > > Issue - When I run ''cap deploy'' I still get asked for the 1st password > (even through the previous 2nd and 3rd password requests are now > automated). It is the capistrano command that start with "git clone - > q ssh:....." for which the password is being requested. > > Question - Is there something I''ve missed? How can I get "cap deploy" > totally passwordless? > > Some excerts from config/deploy.rb are: > ==========> set :use_sudo, false > ssh_options[:keys] = [File.join(ENV["HOME"], ".ssh", "id_rsa")] > default_run_options[:pty] = true > ===========> > thanks-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
greghauptmann
2010-Feb-23 23:37 UTC
Re: capistrano still asks for the 1st password even though I''ve set up an ssh key???
it''s on the same server - actually got it figured out with help of some others - the following got it working: set :repository, "/home/me/git_repo/myapp.git" set :local_repository, "ssh://me-3Q2Tfjf0mexWk0Htik3J/w@public.gmane.org/home/me/git_repo/ myapp.git" On Feb 24, 12:14 am, TomRossi7 <t...-5bxIUPmzHicFraO2wh7vUA@public.gmane.org> wrote:> Greg, > > Where is your repository? I wonder if your key is getting you into > your shell and then it is prompting for your password to access the > repo? > > --Tom > > On Feb 22, 8:04 pm, greghauptmann <greg.hauptm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi, > > > Background: I''ve setup an ssh key to avoid having to use passwords > > with capistrano perhttp://www.picky-ricky.com/2009/01/ssh-keys-with-capistrano.html. > > A basic ssh to my server does work fine without asking for passwords. > > I''m using "dreamhost.com" for hosting. > > > Issue - When I run ''cap deploy'' I still get asked for the 1st password > > (even through the previous 2nd and 3rd password requests are now > > automated). It is the capistrano command that start with "git clone - > > q ssh:....." for which the password is being requested. > > > Question - Is there something I''ve missed? How can I get "cap deploy" > > totally passwordless? > > > Some excerts from config/deploy.rb are: > > ==========> > set :use_sudo, false > > ssh_options[:keys] = [File.join(ENV["HOME"], ".ssh", "id_rsa")] > > default_run_options[:pty] = true > > ===========> > > thanks-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.