I have rundeck 4.10 running as a docker container.
I can 'exec' into the container and run a bash shell. If I then ssh out of the rundeck container onto the underlying host (which has an IP address of, say 174.1.2.3), then the source IP that is presented to SSHD on the underlying host is that of the internal docker network (say 192.168.10.10).
The issue I have is that the authorized_keys file on the underlying host permits incoming connections only from the IP address of the underlying host (not the internal docker network), and hence the connection is denied. I am not able to alter the contents of the authorized_keys file.
Are there any work arounds for this? I wondered if it was possible to bind the src IP for the outgoing SSH connection to the underlying host? Ideally I would not bind the container to the host with –net=host
The current configuration means that rundeck cannot connect to the machine that it itself is running on, but can connect to those around it.
Thanks.