On 08/10/13 22:19 , 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.
And while the PR that adds the user to ssh_options per server is fine I
realize that probably doesn't completely answer your question.
So, from the stack trace I assume you're on a *ix system which increases
the chances of whoami being present.
So maybe something like this?
|set :ssh_options, {
user: "#{|||`whoami`.chop|}"
#do notice it's backticks plz
#that chop removes the \n that is returned with the output
}|
Cheers,
V.-
--
http://www.ampelofilosofies.gr
--
--
* 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.