1

I am logged into the remote server, made some changes to a file,
did a git commit and push which worked fine.
Now i want to deploy and it is asking for a password when i put the one I used to logged into the remote server it rolls back...

Password: 
*** [deploy:update_code] rolling back  
* executing "rm -rf /sites/eq-versions/20130725203900; true"
servers: ["eq-production"]
** [deploy:update_code] exception while rolling back: Capistrano::ConnectionError, connection failed for: eq-production (Net::SSH::AuthenticationFailed: deploy)
connection failed for: eq-production (Net::SSH::AuthenticationFailed: deploy)

what is wrong?

Here is the CAPFILE.

9
  • Try adding default_run_options[:pty] = true and removing the ssh_options line. Commented Jul 26, 2013 at 4:31
  • @CDub thanks but It did not work. Still asking for a password :(. Commented Jul 26, 2013 at 13:31
  • Try logging in using cap shell and running whoami - is it the user you expect? Commented Jul 26, 2013 at 20:42
  • the user is what i expected but the problem is the production server (eq-production), i don't know what password to put in... tried mine, root deploy . does the username has to be same on the remote and local machine? Commented Jul 31, 2013 at 20:22
  • It shouldn't. What's in the ~/.ssh directory? Are there any authorized keys? Commented Aug 1, 2013 at 2:37

1 Answer 1

3

Setup ssh login without password

Sign up to request clarification or add additional context in comments.

8 Comments

can you confirm that you can ssh into the box using the user without a password? example ssh [email protected]. Once that works your cap deploy should work.
i can ssh into the remote server (staging) and call the deploy script which restart the production server.(note: I don't have a profile on the production server but i have one on the staging server)
so can you from where ever you are trying to run cap deploy run ssh [email protected] and connect without typing a password?
no, i cannot ssh into the production server i don't have a profile.
then you will need to great a profile on that server if you want to deploy to it.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.