Hosts should be an array of server addresses, not a string with a hash-style
bracket inside, try :hosts => ['example.com'] (replace with your own) and
try then
-- Lee Hambley

Twitter: @leehambley
Blog: http://lee.hambley.name/
Working with Rails: http://is.gd/1s5W1


2009/8/21 Jiangna <[email protected]>

>
> Hello,
>
> I'm totally new to Rails and Capictrano, so please forgive me for
> asking stupid questions.
>
> I followed direction on capify.org, and get stuck on the first step. I
> created a capfile under my Rails application folder, which look like
> this:
>
> task :search_libs, :hosts => "{my server address}" do
>  run "ls -x1 /usr/lib | grep -i xml"
> end
>
> I open a terminal on my Mac OX, go into the Rails application folder,
> and type this from command line:
>
> $ cap search_libs
>
> It asked my for a password, so I input my password. Then I got this
> error message:
>
> connection failed for: {my server address}
> (Net::SSH::AuthenticationFailed: {my user name})
>
> I am able to access the server via SSH. According to the server
> administrator, I have the full permission to this server. I don't know
> what to do get to the next step. Could anybody help me? Thank you in
> advance.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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.co.uk/group/capistrano?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to