Capistrano: Authentication failed for user ubuntu@xx.xxx.xxx.xxx (Net::SSH::AuthenticationFailed)
The cool dr.calix writes:
issue: Authentication failed for user ubuntu@xx.xxx.xxx.xxx (Net::SSH::AuthenticationFailed) via capistrano but can ssh directly
debugging:
- sudo tail -f /var/log/auth.logon the server
- then tried cap production deploy:checkon my local
- userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]appeared from- auth.log
solution:
- edited then /etc/ssh/sshd_config- find PubkeyAuthenticationthen uncomment(remove#)
- add PubkeyAcceptedKeyTypes=+ssh-rsa
 
- find 
- restart sshd sudo systemctl restart sshd
Related Articles
Please log in to post a comment:
