# Capistrano: can't get remote connection to work

**URL:** <https://www.ruby-forum.com/t/capistrano-cant-get-remote-connection-to-work/89577>\
**Category:** Rails\
**Created:** [March 28, 2006, 11:35pm UTC](https://www.ruby-forum.com/t/capistrano-cant-get-remote-connection-to-work/89577 "2006-03-28T23:35:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stepheneb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/71e660/32.png) [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Post date:** [March 28, 2006, 11:35pm UTC](https://www.ruby-forum.com/t/capistrano-cant-get-remote-connection-to-work/89577/1 "2006-03-28T23:35:36Z")

</div>

I can’t get rake remote:exec ACTION=setup to complete successfully. I  
suspect there is a problem in authentication.

The problem however isn’t RSA authentication, see earlier message:

subj: Capistrano: remote setup fails, using RSA authentication

I renamed my .ssh dir on the remote server and am now connecting via  
ssh-password authentication. I can connect via ssh w/o problem, just  
not through capistrano.

The problem also isn’t the setup task – I created the simplest task  
I could imagine:

task :ls, :roles =\> [:app] do  
run \<\<-CMD  
ls #{deploy\_to}  
CMD  
end

I still get a similar error:

rake remote:exec ACTION=ls  
(in /Users/stephen/dev/rails/teemss2)  
loading configuration  
/usr/local/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/recipes/standard.rb  
loading configuration ./config/deploy.rb

- executing task ls
- executing “ls /web/rails.dev.concord.org/teemss2”  
servers: [“[maggie.concord.org](http://maggie.concord.org)”]  
rake aborted!  
No such file or directory - /tmp/ssh-G0tW2k3sTa/agent.333
