Hi,
You can set the user per server now and globaly also, check PR for details
https://github.com/capistrano/capistrano/pull/557
At a minimum you can add to deploy.rb
server 'example,com', user: 'some_user', roles: %w{web app}
Regards,
On Tuesday, 8 October 2013 23:19:37 UTC+3, Clinton Blackburn wrote:
>
> I am attempting to migrate to v3 and have run into issues with SSH
> authentication. v2 used my local username when accessing the remote server.
> v3 doesn't seem to be doing that. Our remote servers use LDAP, so I would
> prefer not to have to create a deploy user and update its authorized_keys.
> The output of my attempted deploy is below.
>
> cblackburn@Davis:~/workspace/deployment_hub/providermatch$ bundle exec cap
>> integration deploy --trace
>> ** Invoke integration (first_time)
>> ** Execute integration
>> ** Invoke load:defaults (first_time)
>> ** Execute load:defaults
>> ** Invoke deploy (first_time)
>> ** Execute deploy
>> ** Invoke deploy:starting (first_time)
>> ** Invoke deploy:set_shared_assets (first_time)
>> ** Execute deploy:set_shared_assets
>> ** Execute deploy:starting
>> ** Invoke deploy:check (first_time)
>> ** Execute deploy:check
>> ** Invoke git:check (first_time)
>> ** Invoke git:wrapper (first_time)
>> ** Execute git:wrapper
>> cap aborted!
>> Net::SSH::AuthenticationFailed
>> /Users/cblackburn/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/net-ssh-2.7.0/lib/net/ssh.rb:215:in
>>
>> `start'
>> /Users/cblackburn/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/sshkit-0.0.34/lib/sshkit/backends/netssh.rb:156:in
>>
>> `ssh'
>> /Users/cblackburn/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/sshkit-0.0.34/lib/sshkit/backends/netssh.rb:68:in
>>
>> `upload!'
>> /Users/cblackburn/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/capistrano-3.0.0/lib/capistrano/tasks/git.rake:11:in
>>
>> `block (3 levels) in <top (required)>'
>> /Users/cblackburn/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/sshkit-0.0.34/lib/sshkit/backends/netssh.rb:42:in
>>
>> `instance_exec'
>> /Users/cblackburn/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/sshkit-0.0.34/lib/sshkit/backends/netssh.rb:42:in
>>
>> `run'
>> /Users/cblackburn/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/sshkit-0.0.34/lib/sshkit/runners/parallel.rb:29:in
>>
>> `block (2 levels) in execute'
>> Tasks: TOP => git:check => git:wrapper
>
>
--
--
* 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.com/group/capistrano?hl=en
---
You received this message because you are subscribed to the Google Groups
"Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.