Net::SSH works from production rails console, AuthenticationFailed from production webapp
I have a rails app where a user can submit a form and it goes off and connects to a remote server via ssh to call a script. Eventually I plan to use delayed_job or something like that but I can't get it to work in production with even a simple test. The odd thing is, Net::SSH works just fine from the console in production, but it fails with AuthenticationFailed when I submit the form in production. Both the console and the webapp work fine in development. The error: Net::SSH::AuthenticationFailed (my_ssh_username): app/models/branch.rb:69:in `ssh_to_machine' app/controllers/branches_controller