SSHKit::Runner::ExecuteError: Exception while executing on host : Authentication failed for user

Experimenting with Capistrano on my shared server based on [this blog post][1] (a bit dated, yes).

Was getting an error in SSH connection.

Using an .ssh/config file alias (which is set up and working as per [this DO tutorial][2]):

role :web, %w{SSHalias_Name}
role :db,  %w{SSHalias_Name}````

Seem to have solved by running `bundle update net-ssh`, which updated from version `2.9.1` to `2.9.2`. 

Now is connecting.

On another note, had to add a line to `config/deploy.rb` : 

`set :tmp_dir, "/home/dh_user_name/tmp"`

Because my hosts do not allow executables from the `/tmp` directory.

Thanks to [this post][3] for the tip.


  [1]: https://www.fahrenheit.io/deploying-wordpress-with-capistrano-on-godaddy-shared-hosting/
  [2]: https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2
  [3]: http://www.42.mach7x.com/2014/01/09/fatal-cannot-exec-tmp-git-ssh-sh-permission-denied-capistrano-dreamhost-permission-denied-for-git-ssh-sh/
1 Like