Closed pitosalas closed 4 years ago
p.s. is there a user forum where I should ask this or do you want questions here?
@pitosalas Asking questions here is fine. The user
declaration determines what user you will sudo as once connected to the host. When connecting to the host, your current user will be used unless you specify user@
in the host string. More details here: https://github.com/braintree/runbook#remote-command-execution
Even though my runbook says
user rails
it seems that when thessh
is done it uses my own login name on the controlling computer. I am missing something simple./Users/pitosalas/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/net-ssh-5.2.0/lib/net/ssh.rb:263:in
start': Authentication failed for user pitosalas@16.22.12.5 (Net::SSH::AuthenticationFailed)`