Hi everyone, I’m new here and to ansible so please be gentle
I have a situation where to access the remote ansible host/s via SSH I need to:
-
have my public key on the jumphost as my user acct (A)
-
sudo su on jumphost to another account (B)
-
ssh to the remote as (B) using another key (so far, so normal, I hear you say)
-
then sudo su to another account (C) to gain access
I have accomplished this so far by dint of: -
ProxyCommand in .ssh/config with -t for sudo su -l (B)
-
copying user (B) private key to source host
-
-t on the command line for final sudo su (C)
What I need to know is:
- is there a cleaner way in SSH
- assuming 1. what Ansible user setup is required
Obviously none of this would be required if ansible was installed on the jumphost but that won’t happen
TIA, Phil