Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1103029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:16:44+00:00 2026-05-17T01:16:44+00:00

Capistrano keeps asking me for password for every deplyoyment. How do I not let

  • 0

Capistrano keeps asking me for password for every deplyoyment. How do
I not let it happen?

ruby version 1.8.7 REE

capistrano version 2.5.19

Here is my capfile and directory permissions.

http://pastie.org/1189919

Everything up-to-date
 ** transaction: start
  * executing `deploy:update_code'
    updating the cached checkout on all servers
    executing locally: "git ls-remote g...@github.com:username/
app_name.git master"
  * executing "if [ -d /var/www/app_name/shared/cached-copy ]; then
cd /var/www/app_name/shared/cached-copy && git fetch -q origin && git
reset -q --hard 5d47453e28385200daa971ca4982632caf7fb67e && git clean -
q -d -x -f; else git clone -q g...@github.com:username/app_name.git /
var/www/app_name/shared/cached-copy && cd /var/www/app_name/shared/
cached-copy && git checkout -q -b deploy
5d47453e28385200daa971ca4982632caf7fb67e; fi"
    servers: ["1xx.2xx.xxx.xxx"]
Password:
    [173.230.158.13] executing command
    command finished

Update

OK, i am in a super bad mess, now I get this error.

http://pastie.org/1190332

I added a “deploy” user like..

adduser --system --home /home/deploy --shell /bin/bash --ingroup nogroup deploy
chmod u+w /etc/sudoers
echo "deploy  ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
chmod u-w /etc/sudoers

Then I added the configuration you mentioned in my .ssh/config file.

Host prod
  Hostname xxx.xxx.xxx.xx
  User deploy
  ForwardAgent yes

Please help!

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T01:16:44+00:00Added an answer on May 17, 2026 at 1:16 am

    Github is probably asking for your password because it’s not getting your ssh key when connecting from your server. Set up agent forwarding in your ~/.ssh/config:

    Host my_deploy_server
      Hostname 1.2.3.4
      User deploy
      ForwardAgent yes
    
    Host *
      ForwardAgent no
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can't figure this out. Capistrano keeps giving me this error: ** [out ::
I am using Capistrano to deploy a ruby on rails project. I am attempting
Capistrano is a great solution for building scripts that automatically deploy a website and/or
I have a capistrano deployment recipe I've been using for some time to deploy
I'm a big fan of Capistrano but I need to develop an automated deployment
Following on from my question on using frozen Capistrano a couple of days back
We have a rails application in subversion that we deploy with Capistrano but have
I have a app that I'm deploying to a development server using Capistrano. I'd
Backstory I'm on Rails 2.1 and need to freeze the Capistrano gem to my
I'm using Capistrano run a remote task. My task looks like this: task :my_task

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.