On your workstation before deploying do this: eval `ssh-agent` ssh-add ssh-add <path to ec2 identity>
Then retry the cap command I would not guarantee the the "~" symbol is expanded in your keys variable. That method has never worked for me. It's not necessary if you are using agent forwarding and could be fouling things up. On Feb 5, 2013, at 10:31 AM, Cândido Sales Gomes <[email protected]> wrote: > I replaced all single quotes with double quotes, and still the error = / ... > Anyone else? > > Deploy.rb: https://gist.github.com/candidosales/4710703 > > Erro: https://gist.github.com/candidosales/4698593 > > Em terça-feira, 5 de fevereiro de 2013 13h03min33s UTC-3, dbray escreveu: > Why it's blowing up isn't because of ssh > > set :deploy_to, '/var/www/#{application}' > set :current, '#{deploy_to}/current' > > Your quoting of strings is incorrect. > > Using single quotes creates a non-interpolated string. > It's setting the variable to that literal string. > > Use double-quotes instead. > > > > On Feb 4, 2013, at 5:52 PM, Cândido Sales Gomes <[email protected]> wrote: > >> Gentlemen, >> >> When I try to make a connection with capistrano on my EC2 presents this >> error: https://gist.github.com/candidosales/4698593 >> >> My deploy.rb: https://gist.github.com/candidosales/4710703 >> >> When I created the SSH to connect to Github and my local machine to the EC2 >> not used password or passphrase. >> >> I can connect my machine to the server with: ssh [email protected] >> >> Have copied my id_rsa.pub to EC2: cat ~ / .ssh / id_rsa.pub | ssh-i ~ / >> .ec2/midiaexterna-ec2.pem [email protected] "cat >> .ssh / >> authorized_keys" >> >> Please, somebody help me 2 weeks try to make a simple connection with >> capistrano. >> >> Thank you! >> -- >> -- >> * 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.com/group/capistrano?hl=en >> --- >> You received this message because you are subscribed to the Google Groups >> "Capistrano" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> > > -- > -- > * 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.com/group/capistrano?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Capistrano" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > -- -- * 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.com/group/capistrano?hl=en --- You received this message because you are subscribed to the Google Groups "Capistrano" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
