this post was submitted on 20 Jun 2023
1 points (100.0% liked)

Ansible

232 readers
1 users here now

# TODO

founded 1 year ago
MODERATORS
 

I've just moved all my ansible control to a new host, but when I try to run a playbook that worked on the old host, I'm getting this error:

"msg": "Failed to connect to the host via ssh: OpenSSH_9.0p1 Ubuntu-1ubuntu7.1, OpenSSL 3.0.5 5 Jul 2022\r\nCan't open user config file /home/mike/automation/ssh_config: No such file or directory",

The directory exists, it has rw-r--r-- permissions, if I run ssh -F it works fine, but if I manually run the sshpass command it gets the same error, any ideas what might be causing this?

top 1 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 year ago

directory also needs execute permission:

chmod a+x /home/mike/automation/ssh_config