Closed jaydrogers closed 1 month ago
I'm having the same issue
See if we can get Ansible to run with --user to run Ansible as the SPIN_USER_ID (idk if this exists but I read about it somewhere I suppose?)
this option didnt work
{"changed": false, "msg": "Failed to connect to the host via ssh: Bad owner or permissions on /root/.ssh/config", "unreachable": true}
Ubuntu 20.04.6 LTS
My gut feeling is I may need to explore mounting the SSH_AUTH_SOCK how Kamal does it: https://kamal-deploy.org/docs/installation/
I would have to automatically detect this based on the OS running Spin.
Could you guys try again with v2.2.0? https://github.com/serversideup/spin/releases/tag/v2.2.0
I have a ton of improvements with SSH and it should be fixed now. I was able to provision a server with my WSL2 instance with and without password protected SSH keys.
I am closing this now, but will re-open if people have a lot of issues with v2.2.0
Current Behavior
When users are provisioning from a Linux-based host, they experience permissions errors with SSH:
Expected Behavior
The SSH connection should work without users needing to adjust permissions on their SSH keys.
Steps To Reproduce
.spin.yml
and.spin-inventory.ini
for deploymentspin provision --user root
Environment
Anything else?
Proposed solution
--user
to run Ansible as theSPIN_USER_ID