# Permission denied with cap deploy from another machine

**URL:** <https://www.ruby-forum.com/t/permission-denied-with-cap-deploy-from-another-machine/186307>\
**Category:** Rails\
**Created:** [April 4, 2010, 9:35am UTC](https://www.ruby-forum.com/t/permission-denied-with-cap-deploy-from-another-machine/186307 "2010-04-04T09:35:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pietia](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/d07c76/32.png) [@pietia](https://www.ruby-forum.com/u/pietia)\
**Post date:** [April 4, 2010, 9:35am UTC](https://www.ruby-forum.com/t/permission-denied-with-cap-deploy-from-another-machine/186307/1 "2010-04-04T09:35:21Z")

</div>

Hi,

I am trying to deploy a Rails app from another machine than I did before  
and get permission denied errors. Everything the app needs is on the  
same root server.

config/deploy.rb

------8\<---------------------------  
set :git\_enable\_submodules, 1  
set :application, ‘kunsthof’  
set :repository, ‘removed\_email\_address@domain.invalid:/home/user/git/app.git’  
set :scm, :git  
set :use\_sudo, false

if ENV[‘DEPLOY’] == ‘PRODUCTION’  
set :deploy\_to, ‘/srv/www/app’  
else  
set :deploy\_to, ‘/srv/www/app\_staging’  
end

server ‘myserver.tld’, :app, :web, :db, :primary =\> true  
------8\<---------------------------

Following the server’s logfile I get the permission denied when  
capistrano tries to log in from the server into the repository on that  
same server via ssh (by using a password).  
As I said, I don’t get that error deploying from my original development  
machine.

How is that possible? Whats the difference?

Another question is, if it is possible to say capistrano that it is  
pathetic to log in on the same machine via ssh when it just could take  
the repo from it’s path.
