-
Hello, Im new to semaphore and have been wondering how to handle hosts having different ssh-keys, usernames and sudo passwords inside an inventory? Is it expected/required that all hosts inside a single inventory have the same credentials or how do you give semaphore the correct credentials for the different hosts? When I create an inventory it gives me the option to give a single user credential and sudo credential, so I assume that is the case? Thanks a lot in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Currently it is not possible. I research ability to implement this and didn't find solution. We use ssh-agent and it is not possible to provide multiple SSH keys for single call of |
Beta Was this translation helpful? Give feedback.
-
Wouldn't it be possible with ssh agent restrictions as described here: https://www.openssh.com/agent-restrict.html |
Beta Was this translation helpful? Give feedback.
-
A practical solution for SSH logins via semaphore playbook is to utilize a shared SSH key, ensuring it is copied to every host. This task can be automated using Ansible. By implementing this method, you eliminate the need for entering an ID and password for SSH access. |
Beta Was this translation helpful? Give feedback.
Currently it is not possible.
I research ability to implement this and didn't find solution. We use ssh-agent and it is not possible to provide multiple SSH keys for single call of
ansible-playbook
.