semaphore icon indicating copy to clipboard operation
semaphore copied to clipboard

Question: I have a list of hosts in my inventory file, and I need to use a different SSH key for each host. How can I configure this so that each host is accessed with its unique SSH key, rather than using a single key for all hosts?

Open chakib2002 opened this issue 1 year ago • 1 comments

Question

I have a list of hosts in my inventory file, and I need to use a different SSH key for each host. How can I configure this so that each host is accessed with its unique SSH key, rather than using a single key for all hosts?

Related to

Ansible (task execution)

chakib2002 avatar Aug 20 '24 13:08 chakib2002

Hey, this kinda depends on how you have installed Semaphore.

I have it running in docker and have used a bind to make the files (I have about 4 SSH keys) accessible within the container and then they can be manually specified in the vars section of the hosts file (whether you manually enter it or pull it from your git repository is up to you).

whafflez avatar Aug 25 '24 01:08 whafflez

@whafflez Thank's for sharing that

chakib2002 avatar Sep 27 '24 23:09 chakib2002