Hi, I now have my setup working! The user roles can be quite confusing to understand without spending time in the code to find out what is going on (of course this is because capistrano has so many hats). For anyone else who might have similar setup confusions here is a quick summary:
The cap deploy:setup and cap deploy:check tasks default to the current user account on the system you're deploying from and this should be the same user account on the remote machine. Ssh access can be public key based and managed with an ssh-agent pass phrase on a non standard port. You will need to declare the ssh port AND! ssh user name within the deploy.rb even though the ssh user name may be the same as the set :user, "your_user" directive and the deploy:setup and check tasks will work without this i.e. ssh_options[:port] = 10033 ssh_options[:username] = your_user_name ssh_options[:forward_agent] = true set :user, "your_user_name" I used the set repo directive as follows: set :repository, "ssh://[EMAIL PROTECTED]:port]/path/to/repo.git/" Which appears to work although there may be another way to do it. best regards, John On May 27, 7:31 pm, john <[EMAIL PROTECTED]> wrote: > Hi Jamis, > many thanks, your help would be greatly appreciated. I am pulling my > hair out over this now and I was already bald! > > best regards, > John > > On May 27, 7:11 pm, Jamis Buck <[EMAIL PROTECTED]> wrote: > > > It does--my own private keys are passphrase protected and I use ssh- > > agent to manage them. I haven't had a chance yet to look closely at > > your report, though, hopefully tonight, if no one else has helped you > > out. > > > - Jaims > > > On May 27, 2008, at 12:03 PM, john wrote: > > > > Hi, > > > does capistrano 2.3.0 actually support agent based ssh passphrase > > > logins? Reading Net::SSH 2.0 Preview Release #4 (1.99.3) this would > > > not actually appear to be the case.... Can anyone answer my questions > > > about setting alternative ssh ports? > > > > many thanks, > > > John > > > > On May 27, 12:58 pm, john <[EMAIL PROTECTED]> wrote: > > >> Hi, > > >> I have capistrano 2.3.0 set up with all the latest deps. I am using > > >> git as my scm and have a remote repo on my server. Ssh is set up as > > >> passwordless key access using an ssh-agent locally to store my key > > >> pass phrase. I am using the same user account locally and on the > > >> remote server. As far as I can tell there should be no permissions > > >> problems. Cap deploy:check is ok, cap deploy:setup is ok. However cap > > >> deploy:cold tries to connect to my remote host via ssh port 22. I > > >> have > > >> a non standard ssh port setup. What ever I try and do I can not > > >> change > > >> this behavior when trying to run cap deploy:cold. Can anyone tell me > > >> how to fix this? > > > >> many thanks, > > >> John > > > smime.p7s > > 3KDownload --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
