Error connecting via SSH to VSI using Ansible in Schematics

79 views Asked by At

I'm trying to connect to my Virtual Server Instance (VSI) on IBM Cloud using Ansible in Schematics. However, I'm encountering an error and unable to establish the SSH connection.
Here's the error message I'm receiving:

ansible-playbook check | fatal: [xxx.xxx.xx.xxx]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Warning: Permanently added 'xxx.xxx.xx.xxx' (ECDSA) to the list of known hosts.\r\[email protected]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).", "unreachable": true}
ansible-playbook check | 
ansible-playbook check | PLAY RECAP *********************************************************************
ansible-playbook check | xxx.xxx.xx.xxx            : ok=0    changed=0    unreachable=1    failed=0    skipped=0    rescued=0

I have confirmed that the SSH key is correctly associated with the VSI and I'm connected to the VSI on SSH from my local machine.

Can someone please help me troubleshoot this issue?
Any suggestions or insights would be greatly appreciated.

0

There are 0 answers