Capistrano - cap aborted! SSHKit::Runner::ExecuteError: Exception while executing as [email protected]<server>: Authentication failed for user [email protected]<server> Caused by: Net::SSH::AuthenticationFailed: Authentication failed for user [email protected]<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!

Search