I have set up some ansible roles to configure a php web server. I use vagrant to my working copy and it works perfectly. But when I want to connect to a remote server I get this error:
fatal: [xxxxxxx] => SSH Error: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). while connecting to xxxxxxxxxx:22 It is sometimes useful to re-run the command using -vvvv, which prints SSH debug output to help diagnose the issue.
I have the ssh key set on the server (Cent OS 7) so if I do:
ssh -l root XX.XX.XXX.XX
I log in without problems.
Any idea why its failing to log in to the server? Thanks