set :user remote_user_name not affecting SSH login

18 views
Skip to first unread message

Jamie

unread,
Nov 30, 2009, 11:51:56 PM11/30/09
to Capistrano
I'm attempting my first deployment using Capistrano. The recipe
includes

set :user, "remote_user"

When I attempt "cap deploy" I'm prompted for

local...@myserver.com's password:

Of course the local_user has no account on the remote server so I
can't get past this. The weird thing is I was successfully able to
"cap deploy:setup" with the same recipe.

The local machine is a Mac OS X 10.4.11 with an Intel processor. The
remote machine is running Ubuntu 9.04.

Lee Hambley

unread,
Dec 1, 2009, 2:13:58 AM12/1/09
to capis...@googlegroups.com
Can you check there's nothing in your ~/.ssh/config that might be overwriting this?

-- Lee Hambley

Twitter: @leehambley | @capistranorb

Jamie

unread,
Dec 1, 2009, 10:35:31 AM12/1/09
to Capistrano
There is no ~/.ssh/config file.

BTW, I'm using Capistrano v2.5.5 and Ruby v1.8.6.

Rafael G.

unread,
Dec 1, 2009, 11:58:56 AM12/1/09
to capis...@googlegroups.com
Could you paste your deploy.rb ?


--
Rafa

Jamie

unread,
Dec 2, 2009, 10:08:33 AM12/2/09
to Capistrano
Here is deploy.rb.

<script src="http://gist.github.com/247261.js"></script>

On Dec 1, 8:58 am, "Rafael G." <r...@aspgems.com> wrote:
> Jamie wrote:
> > I'm attempting my first deployment using Capistrano. The recipe
> > includes
>
> > set :user, "remote_user"
>
> > When I attempt "cap deploy" I'm prompted for
>
> > local_u...@myserver.com's password:

Jamie

unread,
Dec 2, 2009, 10:14:11 AM12/2/09
to Capistrano
2nd try at pasting deploy.rb. (I obviously don't know how to use gist
with this group.)

git://gist.github.com/247261.git
set :user, "remote_user"
set :application, "core"
set :scm, "git"
set :repository, "ssh://www.myapp.com/home/jamie/git/myapp.git"
set :branch, "master"
set :scm_verbose, true
set :use_sudo, false

#
=============================================================================
# Deploy core application in development environment.
#
=============================================================================

desc "Set configuration variables for the development environment."
task :dev do
role :web, "dev.myapp.com"
role :app, "dev.myapp.com"
role :db, "dev.myapp.com", :primary => true
set :deploy_to, "/home/#{user}/myapp.dev"
end

#
=============================================================================
# Deploy core application in production environment.
#
=============================================================================

desc "Set configuration variables for the production environment."
task :production do
role :web, "www.myapp.com"
role :app, "www.myapp.com"
role :db, "www.myapp.com", :primary => true
set :deploy_to, "/var/www/myapp"
end

#
=============================================================================
# Tasks to Restart the application.
#
=============================================================================

namespace :deploy do
task :restart do
run "touch #{current_path}/tmp/restart.txt"
end
end

Lee Hambley

unread,
Dec 2, 2009, 10:21:40 AM12/2/09
to capis...@googlegroups.com
You link the Gist, like first time.
Reply all
Reply to author
Forward
0 new messages