Capistrano - cap aborted! SSHKit::Runner::ExecuteError: Exception while executing as user@<server>: Authentication failed for user user@<server> Caused by: Net::SSH::AuthenticationFailed: Authentication failed for user user@<server>
Posted on August 13, 2022
Login to the server and changing your sshd_config.
sudo nano -l /etc/ssh/sshd_config
аdd lines
PubkeyAuthentication yes
PubkeyAcceptedKeyTypes=+ssh-rsa
restart sshd daemon
sudo systemctl restart ssh.service
Cheers!